Skip to content

Add commercial LLM provider support (OpenAI, Anthropic) for AI suggestions#331

Merged
vincentmakes merged 5 commits intomainfrom
claude/ai-api-integration-research-rHluv
Feb 27, 2026
Merged

Add commercial LLM provider support (OpenAI, Anthropic) for AI suggestions#331
vincentmakes merged 5 commits intomainfrom
claude/ai-api-integration-research-rHluv

Conversation

@vincentmakes
Copy link
Owner

Extend the AI description suggestion feature to support commercial LLM providers
alongside the existing Ollama self-hosted option. Users can now choose between
Ollama, OpenAI-compatible APIs (GPT, Gemini, Azure, OpenRouter, LM Studio, vLLM),
and Anthropic Claude. DuckDuckGo web search is always used automatically for all
providers to supply up-to-date context. API keys are encrypted at rest using Fernet.

  • Add multi-provider LLM dispatch (_call_openai_compatible, _call_anthropic)
  • Add provider_type and encrypted api_key to AI settings
  • Update admin UI with provider type dropdown and conditional fields
  • Add 71 backend tests covering all provider paths
  • Add translations for all 7 locales
  • Bump version to 0.22.0

https://claude.ai/code/session_01MpBvi4agFzqY6AL38D7BPK

…tions

Extend the AI description suggestion feature to support commercial LLM providers
alongside the existing Ollama self-hosted option. Users can now choose between
Ollama, OpenAI-compatible APIs (GPT, Gemini, Azure, OpenRouter, LM Studio, vLLM),
and Anthropic Claude. DuckDuckGo web search is always used automatically for all
providers to supply up-to-date context. API keys are encrypted at rest using Fernet.

- Add multi-provider LLM dispatch (_call_openai_compatible, _call_anthropic)
- Add provider_type and encrypted api_key to AI settings
- Update admin UI with provider type dropdown and conditional fields
- Add 71 backend tests covering all provider paths
- Add translations for all 7 locales
- Bump version to 0.22.0

https://claude.ai/code/session_01MpBvi4agFzqY6AL38D7BPK
Remove provider_url from logger.info and logger.debug calls in
ai_service.py to avoid clear-text logging of potentially sensitive
endpoint information. The model name and provider type are sufficient
for observability.

https://claude.ai/code/session_01MpBvi4agFzqY6AL38D7BPK
Add explicit type annotation for json.loads() result to satisfy mypy's
no-any-return check in _parse_llm_content().

https://claude.ai/code/session_01MpBvi4agFzqY6AL38D7BPK
httpx exceptions can include request headers (containing API keys) in
their string representation. Replace `%s` exception logging and error
messages with `type(exc).__name__` to prevent clear-text logging of
sensitive credentials. Fixes CodeQL high-severity alerts.

https://claude.ai/code/session_01MpBvi4agFzqY6AL38D7BPK
CodeQL traces taint from decrypt_value() through the ai_cfg dict,
marking model and provider_type as sensitive since they originate from
the same dict that holds the decrypted API key. Remove these variables
from the log call to satisfy the clear-text logging check.

https://claude.ai/code/session_01MpBvi4agFzqY6AL38D7BPK
@vincentmakes vincentmakes merged commit 04d7ef2 into main Feb 27, 2026
14 checks passed
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.

2 participants