Skip to content

Commit

Permalink
Merge pull request #720 from polywrap/update-gpt-4-turbo
Browse files Browse the repository at this point in the history
chore: update to gpt-4-turbo
  • Loading branch information
dOrgJelli authored Apr 10, 2024
2 parents 3a350af + e3646d5 commit 791fff7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
OPENAI_API_KEY=

# GPT_MODEL
# choose between gpt-4-1106-preview, gpt-3.5-turbo-16k-0613, gpt-4 and gpt-3.5-turbo-0613
GPT_MODEL="gpt-4-1106-preview"
# choose between gpt-4-turbo and gpt-3.5-turbo
GPT_MODEL="gpt-4-turbo"

# CONTEXT_WINDOW_TOKENS:
# The size of the context window, used for the agent's short-term memory
# The size of the context window, used for the agent's short-term memory (use 16385 with gpt-3.5-turbo)
CONTEXT_WINDOW_TOKENS=128000

# MAX_RESPONSE_TOKENS
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
run: yarn start:api -c &
env:
OPENAI_API_KEY: ${{ secrets.BENCHMARK_CI_OPENAI_API_KEY }}
GPT_MODEL: "gpt-4-1106-preview"
GPT_MODEL: "gpt-4-turbo"
CONTEXT_WINDOW_TOKENS: 128000
MAX_RESPONSE_TOKENS: 4096
SERP_API_KEY: ${{ secrets.BENCHMARK_CI_SERP_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion apps/browser/lib/hooks/useAccountConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const validateOpenAiApiKey = async (
): Promise<string | void> => {
try {
// Make sure that given api key has access to GPT-4
await checkLlmModel(openAiApiKey, "gpt-4-1106-preview");
await checkLlmModel(openAiApiKey, "gpt-4-turbo");
} catch (e: any) {
if (e.message.includes("Incorrect API key provided")) {
throw new Error(
Expand Down
2 changes: 1 addition & 1 deletion apps/browser/lib/services/evo/createEvoInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function createEvoInstance(

const env = new Env({
OPENAI_API_KEY: openAiApiKey || " ",
GPT_MODEL: "gpt-4-1106-preview",
GPT_MODEL: "gpt-4-turbo",
CONTEXT_WINDOW_TOKENS: "128000",
MAX_RESPONSE_TOKENS: "4096",
});
Expand Down
2 changes: 1 addition & 1 deletion packages/agents/src/agent-core/llm/LlmApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export declare const LlmModels: {
readonly GPT3_16k: "gpt-3.5-turbo-16k";
readonly GPT4: "gpt-4";
readonly GPT4_32k: "gpt-4-32k";
readonly GPT4_TURBO: "gpt-4-1106-preview"
readonly GPT4_TURBO: "gpt-4-turbo"
};
export declare type LlmModel = typeof LlmModels[keyof typeof LlmModels];

Expand Down

0 comments on commit 791fff7

Please sign in to comment.