mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
build: fix mypy build issues
This commit is contained in:
parent
5cfabe9a09
commit
859a2af3ed
5 changed files with 18 additions and 18 deletions
|
@ -118,7 +118,7 @@ def completion(
|
|||
logger_fn=None,
|
||||
):
|
||||
try:
|
||||
import google.generativeai as genai
|
||||
import google.generativeai as genai # type: ignore
|
||||
except:
|
||||
raise Exception(
|
||||
"Importing google.generativeai failed, please run 'pip install -q google-generativeai"
|
||||
|
@ -308,7 +308,7 @@ async def async_completion(
|
|||
messages,
|
||||
encoding,
|
||||
):
|
||||
import google.generativeai as genai
|
||||
import google.generativeai as genai # type: ignore
|
||||
|
||||
response = await _model.generate_content_async(
|
||||
contents=prompt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue