channeltype

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Unknown = iota
	OpenAI
	API2D
	Azure
	CloseAI
	OpenAISB
	OpenAIMax
	OhMyGPT
	Custom
	Ails
	AIProxy
	PaLM
	API2GPT
	AIGC2D
	Anthropic
	Baidu
	Zhipu
	Ali
	Xunfei
	AI360
	OpenRouter
	AIProxyLibrary
	FastGPT
	Tencent
	Gemini
	Moonshot
	Baichuan
	Minimax
	Mistral
	Groq
	Ollama
	LingYiWanWu
	StepFun
	AwsClaude
	Coze
	Cohere
	DeepSeek
	Cloudflare
	DeepL
	TogetherAI
	Doubao
	Novita
	VertextAI
	Proxy
	SiliconFlow
	XAI
	Replicate
	BaiduV2
	XunfeiV2
	AliBailian
	OpenAICompatible
	GeminiOpenAICompatible
	Codex
	Dummy
)

Variables

View Source
var ChannelBaseURLs = []string{
	"",
	"https://api.openai.com",
	"https://oa.api2d.net",
	"",
	"https://api.closeai-proxy.xyz",
	"https://api.openai-sb.com",
	"https://api.openaimax.com",
	"https://api.ohmygpt.com",
	"",
	"https://api.caipacity.com",
	"https://api.aiproxy.io",
	"https://generativelanguage.googleapis.com",
	"https://api.api2gpt.com",
	"https://api.aigc2d.com",
	"https://api.anthropic.com",
	"https://aip.baidubce.com",
	"https://open.bigmodel.cn",
	"https://dashscope.aliyuncs.com",
	"",
	"https://ai.360.cn",
	"https://openrouter.ai/api",
	"https://api.aiproxy.io",
	"https://fastgpt.run/api/openapi",
	"https://hunyuan.tencentcloudapi.com",
	"https://generativelanguage.googleapis.com",
	"https://api.moonshot.cn",
	"https://api.baichuan-ai.com",
	"https://api.minimax.chat",
	"https://api.mistral.ai",
	"https://api.groq.com/openai",
	"http://localhost:11434",
	"https://api.lingyiwanwu.com",
	"https://api.stepfun.com",
	"",
	"https://api.coze.com",
	"https://api.cohere.com",
	"https://api.deepseek.com",
	"https://api.cloudflare.com",
	"https://api-free.deepl.com",
	"https://api.together.xyz",
	"https://ark.cn-beijing.volces.com",
	"https://api.novita.ai/v3/openai",
	"",
	"",
	"https://api.siliconflow.cn",
	"https://api.x.ai",
	"https://api.replicate.com/v1/models/",
	"https://qianfan.baidubce.com",
	"https://spark-api-open.xf-yun.com",
	"https://dashscope.aliyuncs.com",
	"",
	"https://generativelanguage.googleapis.com/v1beta/openai/",
	"",
}

Functions

func ToAPIType

func ToAPIType(channelType int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL