Skip to content

Commit 8151a22

Browse files
authoredSep 9, 2024
Merge pull request #7 from copilot-extensions/tc/model-upgrade
update to gpt-4o
2 parents b9f4741 + 2f42d1e commit 8151a22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const server = createServer(async (request, response) => {
9090
console.time("tool-call");
9191
const toolCaller = await capiClient.chat.completions.create({
9292
stream: false,
93-
model: "gpt-4",
93+
model: "gpt-4o",
9494
messages: toolCallMessages,
9595
tool_choice: "auto",
9696
tools: functions.map((f) => f.tool),
@@ -107,7 +107,7 @@ const server = createServer(async (request, response) => {
107107
// No tool to call, so just call the model with the original messages
108108
const stream = await capiClient.chat.completions.create({
109109
stream: true,
110-
model: "gpt-4",
110+
model: "gpt-4o",
111111
// @ts-expect-error - TODO @gr2m - type incompatibility between @openai/api and @copilot-extensions/preview-sdk
112112
messages: payload.messages,
113113
});

0 commit comments

Comments
 (0)
Failed to load comments.