fix: implement improved headers for anthropic to support 8k outputs (#1654)

This commit is contained in:
Laisky.Cai
2024-07-16 23:48:54 +08:00
committed by GitHub
parent 6209ff9ea9
commit adba54acd3
7 changed files with 38 additions and 30 deletions

View File

@@ -10,20 +10,22 @@ import (
)
type Meta struct {
Mode int
ChannelType int
ChannelId int
TokenId int
TokenName string
UserId int
Group string
ModelMapping map[string]string
BaseURL string
APIKey string
APIType int
Config model.ChannelConfig
IsStream bool
Mode int
ChannelType int
ChannelId int
TokenId int
TokenName string
UserId int
Group string
ModelMapping map[string]string
BaseURL string
APIKey string
APIType int
Config model.ChannelConfig
IsStream bool
// OriginModelName is the model name from the raw user request
OriginModelName string
// ActualModelName is the model name after mapping
ActualModelName string
RequestURLPath string
PromptTokens int // only for DoResponse