Skip to content

Commit cce3e34

Browse files
authored
docs(vertexai): fix json_schema docstring typo (#1329)
<!-- # Thank you for contributing to LangChain-google! --> <!-- ## Checklist for PR Creation - [ ] PR Title: "<type>[optional scope]: <description>" - Where type is one of: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert, release - Scope is used to specifiy the package targeted. Options are: genai, vertex, community, infra (repo-level) - [ ] PR Description and Relevant issues: - Description of the change - Relevant issues (if applicable) - Any dependencies required for this change - [ ] Add Tests and Docs: - If adding a new integration: 1. Include a test for the integration (preferably unit tests that do not rely on network access) 2. Add an example notebook showing its use (place in the `docs/docs/integrations` directory) - [ ] Lint and Test: - Run `make format`, `make lint`, and `make test` from the root of the package(s) you've modified - See contribution guidelines for more: https://github.com/langchain-ai/langchain-google/blob/main/README.md#contribute-code --> <!-- ## Additional guidelines - [ ] PR title and description are appropriate - [ ] Necessary tests and documentation have been added - [ ] Lint and tests pass successfully - [ ] The following additional guidelines are adhered to: - Optional dependencies are imported within functions - No unnecessary dependencies added to pyproject.toml files (except those required for unit tests) - PR doesn't touch more than one package - Changes are backwards compatible --> ## Description <!-- e.g. "Implement user authentication feature" --> ## Relevant issues <!-- e.g. "Fixes #000" --> ## Type <!-- Select the type of Pull Request --> <!-- Keep only the necessary ones --> 🆕 New Feature 🐛 Bug Fix 🧹 Refactoring 📖 Documentation 🚄 Infrastructure ✅ Test ## Changes(optional) <!-- List of changes --> ## Testing(optional) <!-- Test procedure --> <!-- Test result --> ## Note(optional) <!-- Information about the errors fixed by PR --> <!-- Remaining issue or something --> <!-- Other information about PR --> Signed-off-by: jitokim <pigberger70@gmail.com>
1 parent 437e65a commit cce3e34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/vertexai/langchain_google_vertexai/chat_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,7 @@ class the returned attributes will be validated, whereas with a `dict`
24162416
24172417
The final output is always a `dict` with keys `'raw'`, `'parsed'`, and
24182418
`'parsing_error'`.
2419-
method: If set to `'json_schema'` it will use controlled genetration to
2419+
method: If set to `'json_schema'` it will use controlled generation to
24202420
generate the response rather than function calling.
24212421
24222422
Does not work with schemas with references or Pydantic models with
@@ -2740,7 +2740,7 @@ def _gemini_chunk_to_generation_chunk(
27402740
if finish_reason and finish_reason != "FINISH_REASON_UNSPECIFIED":
27412741
message.response_metadata["model_name"] = self.model_name
27422742
# is_blocked is part of "safety_ratings" list
2743-
# but if it's True/False then chunks can't be marged
2743+
# but if it's True/False then chunks can't be merged
27442744
generation_info.pop("is_blocked", None)
27452745

27462746
message.response_metadata["model_provider"] = "google_vertexai"

0 commit comments

Comments
 (0)