Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/langchain-ai/langchainjs in…
Browse files Browse the repository at this point in the history
…to brace/fix-api-ref-urls
  • Loading branch information
bracesproul committed Aug 12, 2024
2 parents 3c14f7c + ae000aa commit 2fed898
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 2fed898

Please sign in to comment.