I’m using the api like this:
chat = model.start_chat(
history=['Tell me if the sentence is positive or negative']
)
then use a loop to input sentences.
However, recently it keeps returning
InternalServerError: 500 An internal error has occurred
after less than 30 sentences. I’ve used it for weeks and it usually returned 500 answers or more until resources were exhausted. Changing the model to gemini-1.5-pro solves the problem but I have to stick with gemini-1.0-pro for specific reasons.