mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
ollama.create fails with ollama._types.ResponseError: unexpected EOF
#93
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 @dormant-user on GitHub (May 31, 2024).
Hello,
I'm trying to customize prompt using a
Modelfilewith instructions in the ollama repoThe CLI commands work just as it should, however when I use the python method to do the same I keep running into
ResponseErrorCode block
Traceback
Modelfile
I do have
llama3pulled alreadyAny help in this regard would be much appreciated.
@TheEpic-dev commented on GitHub (Jun 3, 2024):
https://github.com/ollama/ollama-python/blob/main/ollama/_client.py#L266
It appears that you either need to provide the
Modelfilecontents as a string, or provide apathargument if you want Ollama to read the file for you. Try:@dormant-user commented on GitHub (Jun 4, 2024):
For some reason I kept trying
pathwith just the parent path without includingModelfilein itGuess it was just a force of habit, thanks for the help
This works