mirror of
https://github.com/NCBM/plyngent.git
synced 2026-07-23 14:14:57 +08:00
553d491cbc
Reject providers with no models into bad_providers and warn with reasons on chat/providers. When /provider changes and the current model is not listed, prompt for a new model (keep it when still supported).
33 lines
761 B
TOML
33 lines
761 B
TOML
[database]
|
|
implementation = "sqlite"
|
|
url = ":memory:"
|
|
|
|
[providers.test1]
|
|
preset = "openai"
|
|
access_key_or_token = "sk-1145141919810"
|
|
|
|
[providers.test1.models]
|
|
"gpt-test" = { text = true }
|
|
|
|
[providers.test2]
|
|
preset = "openai-compatible"
|
|
url = "https://www.example.com/v1"
|
|
access_key_or_token = "sk-1145141919810"
|
|
|
|
[providers.test2.models]
|
|
"glm-5.2" = { text = true, image_in = false, image_out = false, audio_in = false, audio_out = false, video_in = false, video_out = false, cost_factor = 5 }
|
|
|
|
[providers.test3]
|
|
preset = "anthropic"
|
|
access_key_or_token = "sk-1145141919810"
|
|
|
|
[providers.test3.models]
|
|
"claude-test" = { text = true }
|
|
|
|
[providers.foo1]
|
|
preset = "deepseek"
|
|
access_key_or_token = "sk-1145141919810"
|
|
|
|
[providers.foo1.extras]
|
|
convention = "anthropic"
|