mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
error in think key and error in message role in ollama gpt-oss #289
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 @Arthurns16 on GitHub (Aug 12, 2025).
I’m running into two errors when executing this code: first, the think option isn’t recognized as valid; second, I’m getting an error about a message with an invalid role and empty content. I’m running gpt-oss with Llama on a Slurm-based cluster. I was able to run Mistral without issues, but the code fails with gpt-oss.
for i in range(start_index, len(df)):
composition = str(df.loc[i, "composition"]).strip()
phase = str(df.loc[i, "phase"]).strip()
input_str = f"{composition} {phase}"
@Arthurns16 commented on GitHub (Aug 12, 2025):
even after updating ollama and python, I recieve null messages error. It only works when I remove json parameter.