Merge branch 'main' into pr/Laisky/25

This commit is contained in:
Laisky.Cai
2025-01-17 07:45:29 +00:00
425 changed files with 30349 additions and 8798 deletions

31
common/ctxkey/key.go Normal file
View File

@@ -0,0 +1,31 @@
package ctxkey
const (
Config = "config"
Id = "id"
RequestId = "X-Oneapi-Request-Id"
Username = "username"
Role = "role"
Status = "status"
ChannelModel = "channel_model"
ChannelRatio = "channel_ratio"
Channel = "channel"
ChannelId = "channel_id"
SpecificChannelId = "specific_channel_id"
RequestModel = "request_model"
ConvertedRequest = "converted_request"
OriginalModel = "original_model"
Group = "group"
ModelMapping = "model_mapping"
ChannelName = "channel_name"
ContentType = "content_type"
TokenId = "token_id"
TokenName = "token_name"
TokenQuota = "token_quota"
TokenQuotaUnlimited = "token_quota_unlimited"
BaseURL = "base_url"
AvailableModels = "available_models"
KeyRequestBody = "key_request_body"
SystemPrompt = "system_prompt"
Meta = "meta"
)