Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GPT-4o #995

Merged
merged 2 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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