fix: implement improved headers for anthropic to support 8k outputs

This commit is contained in:
Laisky.Cai
2024-07-16 01:22:12 +00:00
parent 6209ff9ea9
commit 004d58c4f1
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