WeKnora/internal/models/provider
Prodman Devokadev db05a64caa
feat: add LiteLLM as a model provider (#2923)
* feat(provider): add LiteLLM as an OpenAI-compatible provider

* docs: use revive-compliant comment for ProviderLiteLLM const

* fix(provider): stop defaulting LiteLLM to localhost under SSRF

The catalog URL localhost:4000 is blocked by default SSRF and does not
match DetectProvider, so UI/CLI could neither save nor auto-detect it.
Use a placeholder host, keep thinking aligned with generic, and sync
ModelSource across types, Swagger, and docs.

---------

Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-09-01 12:21:03 +08:00
..
aliyun.go
…
anthropic.go
…
azure_openai.go
…
deepseek.go
…
gemini.go
…
generic.go
…
gpustack.go
…
hunyuan.go
…
jina.go
…
litellm.go feat: add LiteLLM as a model provider (#2923) 2026-09-01 12:21:03 +08:00
lkeap.go
…
longcat.go
…
mimo.go
…
minimax.go
…
modelscope.go
…
moonshot.go
…
novita.go
…
nvidia.go
…
openai.go
…
openai_test.go
…
openrouter.go
…
provider.go feat: add LiteLLM as a model provider (#2923) 2026-09-01 12:21:03 +08:00
provider_test.go feat: add LiteLLM as a model provider (#2923) 2026-09-01 12:21:03 +08:00
qianfan.go
…
qiniu.go
…
requesty.go
…
siliconflow.go
…
volcengine.go
…
weknoracloud.go
…
zhipu.go
…