mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
ollama._types.ResponseError: Unsupported type: 'bool' #84
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @guitmonk-1290 on GitHub (May 15, 2024).
I have this code for generating a SQL query based on my SQL database:
However I am encountering this error:
Previously there was no such error before updating ollama. I'm not sure what is the problem.
Thanks.
@ruaanviljoen commented on GitHub (Jun 2, 2024):
I had the same issue. The problem is that your keep_alive parameter is failing. I didn't dig into why it worked before, but if you look at the chat function definition, the types supported are not Boolean. keep_alive is used to configure the duration and behaviour, it isn't a flag (anymore?). For valid options (seems like float and str for now), see the faq.md here https://github.com/ollama/ollama/blob/d4a86102fd5f84cca50757af00296606ac191890/docs/faq.md?plain=1#L237
I updated mine and works just fine now.
@guitmonk-1290 commented on GitHub (Jun 2, 2024):
@ruaanviljoen ahh I see. So it's like a configuration instead of a flag now. Thanks a bunch.