We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9f4741 + 2f42d1e commit 8151a22Copy full SHA for 8151a22
src/index.ts
@@ -90,7 +90,7 @@ const server = createServer(async (request, response) => {
90
console.time("tool-call");
91
const toolCaller = await capiClient.chat.completions.create({
92
stream: false,
93
- model: "gpt-4",
+ model: "gpt-4o",
94
messages: toolCallMessages,
95
tool_choice: "auto",
96
tools: functions.map((f) => f.tool),
@@ -107,7 +107,7 @@ const server = createServer(async (request, response) => {
107
// No tool to call, so just call the model with the original messages
108
const stream = await capiClient.chat.completions.create({
109
stream: true,
110
111
// @ts-expect-error - TODO @gr2m - type incompatibility between @openai/api and @copilot-extensions/preview-sdk
112
messages: payload.messages,
113
});
0 commit comments