mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(vertex_ai.py): parse out text response from response object
This commit is contained in:
parent
d244978247
commit
b0842e328c
2 changed files with 5 additions and 3 deletions
|
@ -112,7 +112,7 @@ def completion(
|
|||
model_response = chat.send_message_streaming(prompt, **optional_params)
|
||||
return model_response
|
||||
|
||||
completion_response = chat.send_message(prompt, **optional_params)
|
||||
completion_response = chat.send_message(prompt, **optional_params).text
|
||||
elif mode == "text":
|
||||
## LOGGING
|
||||
logging_obj.pre_call(input=prompt, api_key=None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue