coai/globals/constant.go
2025-04-29 19:12:52 +08:00

60 lines
1.3 KiB
Go

package globals
const (
System = "system"
User = "user"
Assistant = "assistant"
Tool = "tool"
Function = "function"
)
const (
OpenAIChannelType = "openai"
AzureOpenAIChannelType = "azure"
ClaudeChannelType = "claude"
SlackChannelType = "slack"
SparkdeskChannelType = "sparkdesk"
ChatGLMChannelType = "chatglm"
HunyuanChannelType = "hunyuan"
QwenChannelType = "qwen"
ZhinaoChannelType = "zhinao"
BaichuanChannelType = "baichuan"
SkylarkChannelType = "skylark"
BingChannelType = "bing"
PalmChannelType = "palm"
MidjourneyChannelType = "midjourney"
MoonshotChannelType = "moonshot"
GroqChannelType = "groq"
DeepseekChannelType = "deepseek"
DifyChannelType = "dify"
CozeChannelType = "coze"
)
const (
NonBilling = "non-billing"
TimesBilling = "times-billing"
TokenBilling = "token-billing"
)
const (
AnonymousType = "anonymous"
NormalType = "normal"
BasicType = "basic" // basic subscription
StandardType = "standard" // standard subscription
ProType = "pro" // pro subscription
AdminType = "admin"
)
const (
NoneProxyType = iota
HttpProxyType
HttpsProxyType
Socks5ProxyType
)
const (
WebTokenType = "web"
ApiTokenType = "api"
SystemToken = "system"
)