mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 00:55:21 -04:00
ollama._types.ResponseError: no FROM line for the model was specified #80
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 @NuclearGeekETH on GitHub (May 3, 2024).
Getting an error when trying to set the system message, code below:
ollama._types.ResponseError: no FROM line for the model was specified@n-vent commented on GitHub (May 4, 2024):
Ollama seems to simply check whether the modelfile string starts with 'FROM'.
In your code, the string actually is
"\n FROM llama3\n SYSTEM You are Llama3, .....".Removing the line break should fix the error: