Commit a2a5aa7
authored
fix(genai): Fix outdated doc for max_output_tokens default value (#1209)
<!--
# Thank you for contributing to LangChain-google!
-->
<!--
## Checklist for PR Creation
- [x] 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)
- [x] PR Description and Relevant issues:
- Description of the change
- Relevant issues (if applicable)
- Any dependencies required for this change
- [x] 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)
- [x] 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
- [x] PR title and description are appropriate
- [x] Necessary tests and documentation have been added
- [x] Lint and tests pass successfully
- [x] 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
The current documentation incorrectly states that the default value of
the `max_output_tokens` parameter is `64`.
In reality, the default varies depending on the model.
This update clarifies that the default is model-specific and adds a
reference to the official Gemini API documentation for model-specific
limits.
## Relevant issues
<!-- e.g. "Fixes #000" -->
## Type
<!-- Select the type of Pull Request -->
<!-- Keep only the necessary ones -->
🐛 Bug Fix
## 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 -->1 parent c886868 commit a2a5aa7
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
0 commit comments