Skip to content

Commit 4a76907

Browse files
authored
Apply suggestions from code review
1 parent 5206048 commit 4a76907

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

libs/langchain-anthropic/src/chat_models.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function extractToken(chunk: AIMessageChunk): string | undefined {
191191
* ## [Runtime args](/interfaces/langchain_anthropic.ChatAnthropicCallOptions.html)
192192
*
193193
* Runtime args can be passed as the second argument to any of the base runnable methods `.invoke`. `.stream`, `.batch`, etc.
194-
* They can also be passed via the `.bind`, or the second arg in the `.bindTools` method, like shown in the example below:
194+
* They can also be passed via `.bind`, or the second arg in `.bindTools`, like shown in the examples below:
195195
*
196196
* ```typescript
197197
* // When calling `.bind`, call options should be passed via the first argument
@@ -204,7 +204,7 @@ function extractToken(chunk: AIMessageChunk): string | undefined {
204204
* const llmWithTools = llm.bindTools(
205205
* [...],
206206
* {
207-
* stop: ["stop on this token!"],
207+
* tool_choice: "auto",
208208
* }
209209
* );
210210
* ```

libs/langchain-openai/src/azure/chat_models.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
* ## [Runtime args](/interfaces/langchain_openai.ChatOpenAICallOptions.html)
3232
*
3333
* Runtime args can be passed as the second argument to any of the base runnable methods `.invoke`. `.stream`, `.batch`, etc.
34-
* They can also be passed via the `.bind`, or the second arg in the `.bindTools` method, like shown in the example below:
34+
* They can also be passed via `.bind`, or the second arg in `.bindTools`, like shown in the examples below:
3535
*
3636
* ```typescript
3737
* // When calling `.bind`, call options should be passed via the first argument
@@ -44,7 +44,7 @@ import {
4444
* const llmWithTools = llm.bindTools(
4545
* [...],
4646
* {
47-
* stop: ["stop on this token!"],
47+
* tool_choice: "auto",
4848
* }
4949
* );
5050
* ```

libs/langchain-openai/src/chat_models.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ export interface ChatOpenAIFields
382382
* ## [Runtime args](/interfaces/langchain_openai.ChatOpenAICallOptions.html)
383383
*
384384
* Runtime args can be passed as the second argument to any of the base runnable methods `.invoke`. `.stream`, `.batch`, etc.
385-
* They can also be passed via the `.bind`, or the second arg in the `.bindTools` method, like shown in the example below:
385+
* They can also be passed via `.bind`, or the second arg in `.bindTools`, like shown in the examples below:
386386
*
387387
* ```typescript
388388
* // When calling `.bind`, call options should be passed via the first argument
@@ -395,7 +395,7 @@ export interface ChatOpenAIFields
395395
* const llmWithTools = llm.bindTools(
396396
* [...],
397397
* {
398-
* stop: ["stop on this token!"],
398+
* tool_choice: "auto",
399399
* }
400400
* );
401401
* ```

0 commit comments

Comments
 (0)