l_ai_address/ai/doubao/constant.go

18 lines
494 B
Go

package doubao
var UrlMap = map[UrlType]string{
Text: "https://ark.cn-beijing.volces.com/api/v3/chat/completions",
Video: "https://ark.cn-beijing.volces.com/api/v3/contents/generations/tasks",
Embedding: "https://ark.cn-beijing.volces.com/api/v3/embeddings",
Token: "https://ark.cn-beijing.volces.com/api/v3/tokenization",
}
type UrlType string
const (
Text UrlType = "text"
Video UrlType = "video"
Embedding UrlType = "embedding"
Token UrlType = "token"
)