mirror of
https://github.com/usestrix/strix.git
synced 2026-08-28 05:25:00 +00:00
fix: set LITELLM_API_KEY env var for unified API key support
This commit is contained in:
parent
ab40dbc33a
commit
286d53384a
2 changed files with 2 additions and 0 deletions
|
|
@ -191,6 +191,7 @@ async def warm_up_llm() -> None:
|
|||
api_key = os.getenv("LLM_API_KEY")
|
||||
|
||||
if api_key:
|
||||
os.environ.setdefault("LITELLM_API_KEY", api_key)
|
||||
litellm.api_key = api_key
|
||||
|
||||
api_base = (
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
api_key = os.getenv("LLM_API_KEY")
|
||||
if api_key:
|
||||
os.environ.setdefault("LITELLM_API_KEY", api_key)
|
||||
litellm.api_key = api_key
|
||||
|
||||
api_base = (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue