We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you add the access_token parameter to the class and pass it to the Anthropic classes in libs/vertexai/langchain_google_vertexai/model_garden.py
libs/vertexai/langchain_google_vertexai/model_garden.py
async_client: Any = None #: :meta private: model_name: Optional[str] = Field(default=None, alias="model") # type: ignore[assignment] "Underlying model name." max_output_tokens: int = Field(default=1024, alias="max_tokens") access_token: Optional[str] = None class Config: """Configuration for this pydantic object.""" allow_population_by_field_name = True @root_validator() def validate_environment(cls, values: Dict) -> Dict: from anthropic import ( # type: ignore[import-not-found] AnthropicVertex, AsyncAnthropicVertex, ) values["client"] = AnthropicVertex( project_id=values["project"], region=values["location"], max_retries=values["max_retries"], access_token=values["access_token"], ) values["async_client"] = AsyncAnthropicVertex( project_id=values["project"], region=values["location"], max_retries=values["max_retries"], access_token=values["access_token"], ) return values
The text was updated successfully, but these errors were encountered:
@dvideby0 thanks for the feature request and a code sample. Do you mind raising a PR, pleease?
Sorry, something went wrong.
PR: #212
thanks a lot for your contribution!
No branches or pull requests
Can you add the access_token parameter to the class and pass it to the Anthropic classes in
libs/vertexai/langchain_google_vertexai/model_garden.py
The text was updated successfully, but these errors were encountered: