Skip to content

Commit 29f83dc

Browse files
authored
chore(core,openai): add some missing chat model call keys (#9223)
1 parent 57e6e74 commit 29f83dc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

β€Žlibs/langchain-core/src/language_models/chat_models.tsβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ export abstract class BaseChatModel<
221221

222222
outputVersion?: MessageOutputVersion;
223223

224+
get callKeys(): string[] {
225+
return [...super.callKeys, "outputVersion"];
226+
}
227+
224228
constructor(fields: BaseChatModelParams) {
225229
super(fields);
226230
this.outputVersion = iife(() => {

β€Žlibs/providers/langchain-openai/src/chat_models/index.tsβ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,10 @@ export class ChatOpenAI<
603603
return [...super.lc_serializable_keys, "useResponsesApi"];
604604
}
605605

606+
get callKeys(): string[] {
607+
return [...super.callKeys, "useResponsesApi"];
608+
}
609+
606610
constructor(protected fields?: ChatOpenAIFields) {
607611
super(fields);
608612
this.useResponsesApi = fields?.useResponsesApi ?? false;

0 commit comments

Comments
Β (0)