You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to call litellm with google studio api, but got this error.
Here is the code
importlitellmfromlitellmimportcompletionimportos# litellm._turn_on_debug()response=completion(
model="gemini/gemini-1.5-pro",
messages=[{'role': 'system', 'content': 'Determine if the following feedback indicates that the user is satisfied or if further changes are needed. Respond with \'True\' if further changes are needed, or \'False\' if the user is satisfied. **Important** Do not include any additional commentary outside of your \'True\' or \'False\' response.\n\nFeedback: "Yellow"'}],
api_key=''
)
the error I am getting
BadRequestError: litellm.BadRequestError: VertexAIExceptionBadRequestError- {
"error": {
"code": 400,
"message": "* GenerateContentRequest.contents: contents is not specified\n",
"status": "INVALID_ARGUMENT"
}
}
Relevant log output
Are you a ML Ops Team?
No
What LiteLLM version are you on ?
1.60.2
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered:
messages=[
{
"role": "system",
"content": "Determine if the following feedback indicates that the user is satisfied or if further changes are needed. Respond with 'True' if further changes are needed, or 'False' if the user is satisfied. **Important** Do not include any additional commentary outside of your 'True' or 'False' response.\n\nFeedback: \"Yellow\"",
},
{
"role": "user",
"content": "What is the color of the sky?",
},
]
What happened?
I am trying to call litellm with google studio api, but got this error.
Here is the code
the error I am getting
Relevant log output
Are you a ML Ops Team?
No
What LiteLLM version are you on ?
1.60.2
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: