mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 03:13:41 +08:00
Closes #167 EmbeddingModelFactory.buildOpenAi() hard-failed on any provider whose API key was empty or unusable, so keyless providers like Ollama and OpenCode (declared with requireApiKey=false) could pass the chat connectivity test but bounce when the same provider's embedding model was tested. Mirror the chat path in OpenAiCompatibleChatModelBuilder.buildOpenAiApi: - If requireApiKey is not explicitly false, an unusable key still throws. - If requireApiKey == false, the key check is skipped and an empty string is passed to OpenAiApi.builder() so no Authorization: Bearer header is attached to the outgoing request. |
||
|---|---|---|
| .. | ||
| src | ||
| Dockerfile | ||
| pom.xml | ||
| settings.xml | ||