Skip to content

Commit

Permalink
Merge pull request #7 from copilot-extensions/tc/model-upgrade
Browse files Browse the repository at this point in the history
update to gpt-4o
  • Loading branch information
theodoracheng authored Sep 9, 2024
2 parents b9f4741 + 2f42d1e commit 8151a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const server = createServer(async (request, response) => {
console.time("tool-call");
const toolCaller = await capiClient.chat.completions.create({
stream: false,
model: "gpt-4",
model: "gpt-4o",
messages: toolCallMessages,
tool_choice: "auto",
tools: functions.map((f) => f.tool),
Expand All @@ -107,7 +107,7 @@ const server = createServer(async (request, response) => {
// No tool to call, so just call the model with the original messages
const stream = await capiClient.chat.completions.create({
stream: true,
model: "gpt-4",
model: "gpt-4o",
// @ts-expect-error - TODO @gr2m - type incompatibility between @openai/api and @copilot-extensions/preview-sdk
messages: payload.messages,
});
Expand Down

0 comments on commit 8151a22

Please sign in to comment.