mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 12:08:01 +00:00
This PR adds the ability to modify the embedding model used by Captain AI.Previously, the embedding model was hardcoded which led to errors when you used a different API provider which did not support that specific embedding model. Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
8 lines
190 B
Ruby
8 lines
190 B
Ruby
# frozen_string_literal: true
|
|
|
|
module OpenAiConstants
|
|
DEFAULT_MODEL = 'gpt-4.1-mini'
|
|
DEFAULT_ENDPOINT = 'https://api.openai.com'
|
|
DEFAULT_EMBEDDING_MODEL = 'text-embedding-3-small'
|
|
end
|