Skip to content

Commit

Permalink
feat: baichuan model config
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Jan 6, 2025
1 parent 3e7dad5 commit 9a7f5c1
Showing 1 changed file with 54 additions and 9 deletions.
63 changes: 54 additions & 9 deletions service/aiproxy/relay/adaptor/baichuan/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,63 @@ import (

var ModelList = []*model.ModelConfig{
{
Model: "Baichuan2-Turbo",
Type: relaymode.ChatCompletions,
Owner: model.ModelOwnerBaichuan,
Model: "Baichuan4-Turbo",
Type: relaymode.ChatCompletions,
Owner: model.ModelOwnerBaichuan,
InputPrice: 0.015,
OutputPrice: 0.015,
Config: model.NewModelConfig(
model.WithModelConfigMaxContextTokens(32768),
),
},
{
Model: "Baichuan2-Turbo-192k",
Type: relaymode.ChatCompletions,
Owner: model.ModelOwnerBaichuan,
Model: "Baichuan4-Air",
Type: relaymode.ChatCompletions,
Owner: model.ModelOwnerBaichuan,
InputPrice: 0.00098,
OutputPrice: 0.00098,
Config: model.NewModelConfig(
model.WithModelConfigMaxContextTokens(32768),
),
},
{
Model: "Baichuan-Text-Embedding",
Type: relaymode.Embeddings,
Owner: model.ModelOwnerBaichuan,
Model: "Baichuan4",
Type: relaymode.ChatCompletions,
Owner: model.ModelOwnerBaichuan,
InputPrice: 0.1,
OutputPrice: 0.1,
Config: model.NewModelConfig(
model.WithModelConfigMaxContextTokens(32768),
),
},
{
Model: "Baichuan3-Turbo",
Type: relaymode.ChatCompletions,
Owner: model.ModelOwnerBaichuan,
InputPrice: 0.012,
OutputPrice: 0.012,
Config: model.NewModelConfig(
model.WithModelConfigMaxContextTokens(32768),
),
},
{
Model: "Baichuan3-Turbo-128k",
Type: relaymode.ChatCompletions,
Owner: model.ModelOwnerBaichuan,
InputPrice: 0.024,
OutputPrice: 0.024,
Config: model.NewModelConfig(
model.WithModelConfigMaxContextTokens(131072),
),
},

{
Model: "Baichuan-Text-Embedding",
Type: relaymode.Embeddings,
Owner: model.ModelOwnerBaichuan,
InputPrice: 0.0005,
Config: model.NewModelConfig(
model.WithModelConfigMaxInputTokens(512),
),
},
}

0 comments on commit 9a7f5c1

Please sign in to comment.