Skip to content

Commit

Permalink
wrong list of embedding models
Browse files Browse the repository at this point in the history
  • Loading branch information
hariso committed Dec 13, 2024
1 parent 28db62d commit 956c9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plugin/processor/builtin/impl/ai/openai/embedding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down

0 comments on commit 956c9f6

Please sign in to comment.