google / google/generative-ai-docs

500 error with function call

Open
#252 4 comments 0 reactions 0 assignees View on GitHub
component:support type:bug
Dominant language
Jupyter Notebook
Stars
2.3k
Forks
735
PR merge metrics
No merged PRs in 30d

Description

### Description of the bug:

I am sending a request to Gemini API with tools (function call) but consistently receiving 500 internal server error. Without the function call the API returns 200 response.

I have checked that the request is under the 10k token.

### How to reproduce the error?
The request to reproduce the error can be found at the link:
https://drive.google.com/file/d/1rVDXm1zCuDILs3UQOieJd4SYTX2qD2cQ/view?usp=sharing

### Actual vs expected behavior:

Expected behavior: function call response
Actual behavior:
```
"error": {
"code": 500,
"message": "An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting",
"status": "INTERNAL"
}
```

### Any other information you'd like to share?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.