Skip to content

Commit

Permalink
Update model for openai service (#264)
Browse files Browse the repository at this point in the history
* Change model for openai service

* Change model for openai service
  • Loading branch information
Ste74 authored Jan 13, 2024
1 parent 97646a9 commit f7af45b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/openai-translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function translateSingleString(
*/
try {
const completion = await openai.createCompletion({
model: "text-davinci-003",
model: "gpt-3.5-turbo-instruct",
prompt,
temperature: 0.2,
max_tokens: 2048,
Expand Down
2 changes: 1 addition & 1 deletion src/services/typechat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function createLanguageModel(
): TypeChatLanguageModel {
const apiKey =
env.OPENAI_API_KEY ?? missingEnvironmentVariable("OPENAI_API_KEY");
const model = env.OPENAI_MODEL ?? "text-davinci-003";
const model = env.OPENAI_MODEL ?? "gpt-3.5-turbo-instruct";
const url =
env.OPENAI_ENDPOINT ?? "https://api.openai.com/v1/chat/completions";

Expand Down

0 comments on commit f7af45b

Please sign in to comment.