Skip to content

Commit ae000aa

Browse files
authored
Adds docstrings to more models (#6510)
1 parent 4c50495 commit ae000aa

File tree

6 files changed

+1298
-29
lines changed

6 files changed

+1298
-29
lines changed

docs/core_docs/docs/integrations/chat/google_vertex_ai.ipynb

+2-3
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,8 @@
117117
" model: \"gemini-1.5-pro\",\n",
118118
" temperature: 0,\n",
119119
" maxRetries: 2,\n",
120-
" authOptions: {\n",
121-
" // ... auth options\n",
122-
" }\n",
120+
" // For web, authOptions.credentials\n",
121+
" // authOptions: { ... }\n",
123122
" // other params...\n",
124123
"})"
125124
]

libs/langchain-anthropic/src/chat_models.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ export interface AnthropicInput {
126126
/** Anthropic API URL */
127127
anthropicApiUrl?: string;
128128

129+
/** @deprecated Use "model" instead */
130+
modelName?: string;
129131
/** Model name to use */
130-
modelName: string;
131-
/** Model name to use */
132-
model: string;
132+
model?: string;
133133

134134
/** Overridable Anthropic ClientOptions */
135-
clientOptions: ClientOptions;
135+
clientOptions?: ClientOptions;
136136

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

612612
streamUsage = true;
613613

614-
constructor(fields?: Partial<AnthropicInput> & BaseChatModelParams) {
614+
constructor(fields?: AnthropicInput & BaseChatModelParams) {
615615
super(fields ?? {});
616616

617617
this.anthropicApiKey =

0 commit comments

Comments
 (0)