Skip to content

Commit

Permalink
Add GPT4-O
Browse files Browse the repository at this point in the history
  • Loading branch information
homanp committed May 14, 2024
1 parent 439741b commit 734e662
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion libs/superagent/app/tools/advanced_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def _run(self, url: str) -> str:
"waitBeforeScraping": 1,
"fastLane": True,
"removeCSSselectors": "default",
"triggersDownload": True,
"timeout": 45,
}

Expand Down
2 changes: 2 additions & 0 deletions libs/superagent/app/utils/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"GPT_4_TURBO": "gpt-4-turbo",
"GPT_4_TURBO_2024_04_09": "gpt-4-turbo-2024-04-09",
"GPT_4_0125_PREVIEW": "gpt-4-0125-preview",
"GPT_4_O": "gpt-4o",
}

LLM_REVERSE_MAPPING = {v: k for k, v in LLM_MAPPING.items()}
Expand All @@ -36,6 +37,7 @@
"GPT_4_TURBO_2024_04_09",
"GPT_4_0125_PREVIEW",
"GPT_4_32K",
"GPT_4_O",
]
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterEnum
ALTER TYPE "LLMModel" ADD VALUE 'GPT_4_0';
1 change: 1 addition & 0 deletions libs/superagent/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ enum LLMModel {
GPT_4_TURBO
GPT_4_TURBO_PREVIEW
GPT_4_TURBO_2024_04_09
GPT_4_0
MISTRAL_7B_INSTRUCT_V01
MIXTRAL_8X7B_INSTRUCT_V01
}
Expand Down
4 changes: 4 additions & 0 deletions libs/ui/config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ export const siteConfig = {
value: "GPT_4_TURBO_PREVIEW",
title: "gpt-4-turbo-preview",
},
{
value: "GPT_4_O",
title: "gpt-4o",
},
],
},
{
Expand Down
1 change: 1 addition & 0 deletions libs/ui/models/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export enum LLMModel {
GPT_4_0613,
GPT_4_32K_0613,
GPT_4_1106_PREVIEW,
GPT_4_O,
MISTRAL_7B_INSTRUCT_V01,
}

Expand Down

0 comments on commit 734e662

Please sign in to comment.