Skip to content

Commit b6d32e5

Browse files
Bhishmendra MahalaBhishmendra Mahala
authored andcommitted
fix(chat): resolve parsing issue in chat completion
1 parent 8b37795 commit b6d32e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/apis/chatCompletions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class ChatCompletions extends ApiResource {
150150
}
151151

152152
const OAIclient = initOpenAIClient(this.client);
153-
const result = await OAIclient.responses.parse(body, opts);
153+
const result = await OAIclient.chat.completions.parse(body, opts);
154154
return result;
155155
}
156156

0 commit comments

Comments
 (0)