Skip to content

Byok phase 2 (requires agent pr #1541)#43

Open
jasperblues wants to merge 1 commit intomainfrom
feature/byok-phase-2
Open

Byok phase 2 (requires agent pr #1541)#43
jasperblues wants to merge 1 commit intomainfrom
feature/byok-phase-2

Conversation

@jasperblues
Copy link
Copy Markdown
Contributor

Replace hand-rolled Spring AI builder code in UserModelFactory with OpenAiCompatibleModelFactory and AnthropicModelFactory from embabel-agent. Mistral
and DeepSeek route through the OpenAI-compatible factory (they use the same wire protocol). Key validation now calls buildValidated() on the appropriate factory rather than casting to SpringAiLlmService and calling chatModel.call() directly — this eliminates Spring AI types from the validation path and suppresses retry stack-trace noise on invalid keys.

Also renames UserLlmResolver.detectProvider() → detectServerProvider() to distinguish env-var detection from the live-probe detectProvider in the framework.

pom.xml: swaps spring-ai-{openai,anthropic,mistral-ai,deepseek} direct deps for embabel-agent-openai + embabel-agent-anthropic-autoconfigure, which carry those transitively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant