We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed5b04b commit e8083a3Copy full SHA for e8083a3
plugins/wasm-go/extensions/ai-proxy/provider/hunyuan.go
@@ -43,6 +43,7 @@ const (
43
// docs: https://cloud.tencent.com/document/product/1729/111007
44
hunyuanOpenAiDomain = "api.hunyuan.cloud.tencent.com"
45
hunyuanOpenAiRequestPath = "/v1/chat/completions"
46
+ hunyuanOpenAiEmbeddings = "/v1/embeddings"
47
)
48
49
type hunyuanProviderInitializer struct {
@@ -104,6 +105,7 @@ func (m *hunyuanProviderInitializer) ValidateConfig(config *ProviderConfig) erro
104
105
func (m *hunyuanProviderInitializer) DefaultCapabilities() map[string]string {
106
return map[string]string{
107
string(ApiNameChatCompletion): hunyuanOpenAiRequestPath,
108
+ string(ApiNameEmbeddings): hunyuanOpenAiEmbeddings,
109
}
110
111
0 commit comments