feat(agent): complete closed-loop runtime and pricing fallback
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pytest import MonkeyPatch
|
||||
|
||||
from core.config.settings import Settings
|
||||
|
||||
|
||||
def test_social_prefixed_llm_provider_keys_populates_settings(
|
||||
monkeypatch: MonkeyPatch,
|
||||
) -> None:
|
||||
monkeypatch.setenv("SOCIAL_LLM__PROVIDER_KEYS__DASHSCOPE", "dash-key")
|
||||
monkeypatch.setenv("SOCIAL_LLM__PROVIDER_KEYS__DEEPSEEK", "deep-key")
|
||||
monkeypatch.setenv("SOCIAL_LLM__PROVIDER_KEYS__ARK", "ark-key")
|
||||
|
||||
settings = Settings()
|
||||
|
||||
keys = {key.lower(): value for key, value in settings.llm.provider_keys.items()}
|
||||
assert keys["dashscope"] == "dash-key"
|
||||
assert keys["deepseek"] == "deep-key"
|
||||
assert keys["ark"] == "ark-key"
|
||||
Reference in New Issue
Block a user