Commit bfeb4a9
1570 Replace inline Ollama key check with Provider.requiresApiKey()
Introduce Provider.requiresApiKey() (backed by a KEYLESS_PROVIDERS set,
mirroring EMBEDDING_PROVIDERS/isEmbeddingSupported) and use it in place of the
inline 'provider != OLLAMA' checks in resolveWithApiKey and the chat client
resolver, so adding another key-less provider is a one-line change.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 39ffa9b commit bfeb4a9
3 files changed
Lines changed: 9 additions & 4 deletions
File tree
- server
- ee/libs/platform
- platform-ai/platform-ai-agent/platform-ai-agent-service/src/main/java/com/bytechef/ee/platform/ai/agent/catalog
- platform-configuration/platform-configuration-service/src/main/java/com/bytechef/ee/platform/configuration/facade
- libs/platform/platform-ai/platform-ai-api/src/main/java/com/bytechef/platform/ai/llm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
350 | | - | |
| 349 | + | |
351 | 350 | | |
352 | 351 | | |
353 | 352 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
| |||
0 commit comments