fix: embedding URL path missing /v1 prefix
The embedding endpoint path was but OpenAI-compatible APIs serve embeddings at . When EMBEDDING_BASE_URL is set to a bare host (e.g. https://llm.aviron.ai), the resulting URL would be /eembeddings instead of /v1/embeddings, returning 404. Changed defaultBaseURL to not include /v1 and always use /v1/embeddings as the endpoint path.
This commit is contained in:
1 parent
306fea37fd
commit
5ac11631d4
3 files changed
+5
-5
No files matched your search
@@ -77,8 +77,8 @@
|
||||
|
||||
embeddingBaseUrl = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "https://api.openai.com/v1";
|
||||
description = "Base URL for the embeddings API.";
|
||||
default = "https://api.openai.com";
|
||||
description = "Base URL for the embeddings API. Do not include /v1 suffix; it is appended automatically.";
|
||||
};
|
||||
|
||||
embeddingModel = lib.mkOption {
|
||||
|
||||
Reference in new issue
Block a user