mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 19:35:17 +00:00
Add ability to work with litellm debugger
This commit is contained in:
parent
460b315b53
commit
dd8c992dad
1 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,8 @@ class AiHandler:
|
||||||
litellm.replicate_key = get_settings().replicate.key
|
litellm.replicate_key = get_settings().replicate.key
|
||||||
if get_settings().get("HUGGINGFACE.KEY", None):
|
if get_settings().get("HUGGINGFACE.KEY", None):
|
||||||
litellm.huggingface_key = get_settings().huggingface.key
|
litellm.huggingface_key = get_settings().huggingface.key
|
||||||
|
if get_settings().get("LITELLM.USER_EMAIL"):
|
||||||
|
litellm.email = get_settings().get("LITELLM.USER_EMAIL", None)
|
||||||
except AttributeError as e:
|
except AttributeError as e:
|
||||||
raise ValueError("OpenAI key is required") from e
|
raise ValueError("OpenAI key is required") from e
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue