Skip to content

Commit

Permalink
Adds docstrings to more models (#6510)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Aug 12, 2024
1 parent 4c50495 commit ae000aa
Show file tree
Hide file tree
Showing 6 changed files with 1,298 additions and 29 deletions.
5 changes: 2 additions & 3 deletions docs/core_docs/docs/integrations/chat/google_vertex_ai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@
" model: \"gemini-1.5-pro\",\n",
" temperature: 0,\n",
" maxRetries: 2,\n",
" authOptions: {\n",
" // ... auth options\n",
" }\n",
" // For web, authOptions.credentials\n",
" // authOptions: { ... }\n",
" // other params...\n",
"})"
]
Expand Down
10 changes: 5 additions & 5 deletions libs/langchain-anthropic/src/chat_models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ export interface AnthropicInput {
/** Anthropic API URL */
anthropicApiUrl?: string;

/** @deprecated Use "model" instead */
modelName?: string;
/** Model name to use */
modelName: string;
/** Model name to use */
model: string;
model?: string;

/** Overridable Anthropic ClientOptions */
clientOptions: ClientOptions;
clientOptions?: ClientOptions;

/** Holds any additional parameters that are valid to pass to {@link
* https://console.anthropic.com/docs/api/reference |
Expand Down Expand Up @@ -611,7 +611,7 @@ export class ChatAnthropicMessages<

streamUsage = true;

constructor(fields?: Partial<AnthropicInput> & BaseChatModelParams) {
constructor(fields?: AnthropicInput & BaseChatModelParams) {
super(fields ?? {});

this.anthropicApiKey =
Expand Down
Loading

0 comments on commit ae000aa

Please sign in to comment.