Skip to content

Commit

Permalink
Merge pull request #13 from quipper/use-gpt-4o-mini
Browse files Browse the repository at this point in the history
Use gpt-4o-mini
  • Loading branch information
chaspy authored Aug 1, 2024
2 parents 5afee0c + 4173343 commit 0224fd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ type Message = {
};

async function requestAzureOpenAI(apiKey: string, messages: Message[]) {
const OPENAI_RESOURCE_ID = "ask-chatgpt";
const DEPLOYMENT_ID = "gpt-4o";
const OPENAI_RESOURCE_ID = "ask-chatgpt-east-us";
const DEPLOYMENT_ID = "gpt-4o-mini";
const API_VERSION = "2024-02-01";
const res = await fetch(
`https://${OPENAI_RESOURCE_ID}.openai.azure.com/openai/deployments/${DEPLOYMENT_ID}/chat/completions?api-version=${API_VERSION}`,
Expand All @@ -127,7 +127,7 @@ async function requestAzureOpenAI(apiKey: string, messages: Message[]) {
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "gpt-4o",
model: "gpt-4o-mini",
messages: messages,
}),
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default Manifest({
description: "workflow",
icon: "assets/chatgpt.png",
workflows: [ChatGPTWorkflow],
outgoingDomains: ["ask-chatgpt.openai.azure.com"],
outgoingDomains: ["ask-chatgpt-east-us.openai.azure.com"],
datastores: [TalkHistoriesDatastore],
botScopes: [
"commands",
Expand Down

0 comments on commit 0224fd8

Please sign in to comment.