Skip to content

Commit

Permalink
Add GPT-4o (#995)
Browse files Browse the repository at this point in the history
* Add GPT4-O

* Minor tweaks
  • Loading branch information
homanp authored May 14, 2024
1 parent 439741b commit 11b57d1
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fern/apis/prod/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.2
info:
title: Superagent
description: 🥷 Run AI-agents with an API
version: 0.2.38
version: 0.2.39
servers:
- url: https://api.beta.superagent.sh
paths:
Expand Down
2 changes: 1 addition & 1 deletion libs/superagent/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
title="Superagent",
docs_url="/",
description="🥷 Run AI-agents with an API",
version="0.2.36",
version="0.2.39",
servers=[{"url": config("SUPERAGENT_API_URL")}],
)

Expand Down
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
2 changes: 1 addition & 1 deletion libs/superagent/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "superagent"
version = "0.2.36"
version = "0.2.39"
description = "🥷 Run AI-agents with an API"
authors = ["Ismail Pelaseyed"]
readme = "../../README.md"
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 11b57d1

Please sign in to comment.