mirror of
https://github.com/coaidev/coai.git
synced 2025-05-20 05:20:15 +09:00
feat: support model gpt-4o
and gpt-4o-2024-05-13
This commit is contained in:
parent
78a3214ff2
commit
4248fe702e
@ -112,6 +112,8 @@ export const ChannelInfos: Record<string, ChannelInfo> = {
|
||||
"gpt-4-32k",
|
||||
"gpt-4-32k-0314",
|
||||
"gpt-4-32k-0613",
|
||||
"gpt-4o",
|
||||
"gpt-4o-2024-05-13",
|
||||
"dalle",
|
||||
"dall-e-2",
|
||||
"dall-e-3",
|
||||
|
@ -31,6 +31,8 @@ export const modelColorMapper: Record<string, string> = {
|
||||
"gpt-4-32k": "purple-600",
|
||||
"gpt-4-32k-0613": "purple-600",
|
||||
"gpt-4-32k-0314": "purple-600",
|
||||
"gpt-4o": "purple-600",
|
||||
"gpt-4o-2024-05-13": "purple-600",
|
||||
|
||||
"dall-e-3": "purple-700",
|
||||
|
||||
|
@ -66,6 +66,12 @@ export const pricing: PricingDataset = [
|
||||
input: 0.01,
|
||||
output: 0.03,
|
||||
},
|
||||
{
|
||||
models: ["gpt-4o", "gpt-4o-2024-05-13"],
|
||||
input: 0.005,
|
||||
output: 0.015,
|
||||
},
|
||||
|
||||
{
|
||||
models: ["gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613"],
|
||||
input: 0.06,
|
||||
|
@ -90,6 +90,8 @@ const (
|
||||
GPT432k = "gpt-4-32k"
|
||||
GPT432k0314 = "gpt-4-32k-0314"
|
||||
GPT432k0613 = "gpt-4-32k-0613"
|
||||
GPT4O = "gpt-4o"
|
||||
GPT4O20240513 = "gpt-4o-2024-05-13"
|
||||
Dalle = "dalle"
|
||||
Dalle2 = "dall-e-2"
|
||||
Dalle3 = "dall-e-3"
|
||||
@ -138,7 +140,7 @@ var OpenAIDalleModels = []string{
|
||||
}
|
||||
|
||||
var VisionModels = []string{
|
||||
GPT4VisionPreview, GPT41106VisionPreview, // openai
|
||||
GPT4VisionPreview, GPT41106VisionPreview,GPT4O,GPT4O20240513 // openai
|
||||
GeminiProVision, // gemini
|
||||
Claude3, // anthropic
|
||||
ZhiPuChatGLM4Vision, // chatglm
|
||||
|
Loading…
Reference in New Issue
Block a user