Skip to content

Commit e8083a3

Browse files
committed
feature: support tencent hunyuan embeddings
1 parent ed5b04b commit e8083a3

File tree

1 file changed

+2
-0
lines changed
  • plugins/wasm-go/extensions/ai-proxy/provider

1 file changed

+2
-0
lines changed

plugins/wasm-go/extensions/ai-proxy/provider/hunyuan.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const (
4343
// docs: https://cloud.tencent.com/document/product/1729/111007
4444
hunyuanOpenAiDomain = "api.hunyuan.cloud.tencent.com"
4545
hunyuanOpenAiRequestPath = "/v1/chat/completions"
46+
hunyuanOpenAiEmbeddings = "/v1/embeddings"
4647
)
4748

4849
type hunyuanProviderInitializer struct {
@@ -104,6 +105,7 @@ func (m *hunyuanProviderInitializer) ValidateConfig(config *ProviderConfig) erro
104105
func (m *hunyuanProviderInitializer) DefaultCapabilities() map[string]string {
105106
return map[string]string{
106107
string(ApiNameChatCompletion): hunyuanOpenAiRequestPath,
108+
string(ApiNameEmbeddings): hunyuanOpenAiEmbeddings,
107109
}
108110
}
109111

0 commit comments

Comments
 (0)