(docs) passing user_config to completion

This commit is contained in:
ishaan-jaff 2024-01-02 14:19:44 +05:30
parent bfae0fe935
commit 1efd1cb30f

View file

@ -251,6 +251,12 @@ print(query_result[:5])
### Pass User LLM API Keys, Fallbacks ### Pass User LLM API Keys, Fallbacks
Allows users to pass their model list, api base, OpenAI API key (any LiteLLM supported provider) to make requests Allows users to pass their model list, api base, OpenAI API key (any LiteLLM supported provider) to make requests
:::info
**You can pass a litellm.RouterConfig as `user_config`, See all supported params here https://github.com/BerriAI/litellm/blob/main/litellm/types/router.py **
:::
<Tabs> <Tabs>
<TabItem value="openai-py" label="OpenAI Python"> <TabItem value="openai-py" label="OpenAI Python">