forked from phoenix/litellm-mirror
add palm warning
This commit is contained in:
parent
61201c1b8f
commit
cab100af11
2 changed files with 5 additions and 3 deletions
|
@ -27,8 +27,10 @@ def completion(
|
||||||
litellm_params=None,
|
litellm_params=None,
|
||||||
logger_fn=None,
|
logger_fn=None,
|
||||||
):
|
):
|
||||||
|
try:
|
||||||
import google.generativeai as palm
|
import google.generativeai as palm
|
||||||
|
except:
|
||||||
|
raise Exception("Importing google.generativeai failed, please run 'pip install -q google-generativeai")
|
||||||
palm.configure(api_key=api_key)
|
palm.configure(api_key=api_key)
|
||||||
|
|
||||||
model = model
|
model = model
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "litellm"
|
name = "litellm"
|
||||||
version = "0.1.762"
|
version = "0.1.763"
|
||||||
description = "Library to easily interface with LLM API providers"
|
description = "Library to easily interface with LLM API providers"
|
||||||
authors = ["BerriAI"]
|
authors = ["BerriAI"]
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue