From 956c9f6c237b44abe4703c82a7ab97db757071f3 Mon Sep 17 00:00:00 2001 From: Haris Osmanagic Date: Fri, 13 Dec 2024 11:01:38 +0100 Subject: [PATCH] wrong list of embedding models --- pkg/plugin/processor/builtin/impl/ai/openai/embedding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/plugin/processor/builtin/impl/ai/openai/embedding.go b/pkg/plugin/processor/builtin/impl/ai/openai/embedding.go index e02c66098..dbb3972db 100644 --- a/pkg/plugin/processor/builtin/impl/ai/openai/embedding.go +++ b/pkg/plugin/processor/builtin/impl/ai/openai/embedding.go @@ -35,7 +35,7 @@ const EmbeddingMetadataBase64 = "openai.embedding.base64" type embeddingProcConfig struct { APIKey string `json:"apiKey" validate:"required"` Endpoint string `json:"endpoint" default:"https://api.openai.com/v1"` - Model string `json:"model" validate:"required,inclusion=gpt-4|gpt-4-turbo|gpt-3.5-turbo|text-davinci-003|text-davinci-002|text-curie-001|text-babbage-001|text-ada-001"` + Model string `json:"model" validate:"required,inclusion=text-embedding-3-large|text-embedding-3-small|text-embedding-ada-002"` InputField string `json:"inputField" validate:"regex=^\\.(Payload|Key).*" default:".Payload.After"` }