[GH-ISSUE #5973] Error: template: :28:7: executing "" at <.ToolCalls>: can't evaluate field ToolCalls in type *api.Message #3733

Closed
opened 2026-04-12 14:32:37 -05:00 by GiteaMirror · 12 comments
Owner

Originally created by @dashan996 on GitHub (Jul 26, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5973

What is the issue?

After downloaded llama3.1:70b and run it, I meet this question. I have tried other models and everyone works well. I deleted it and download again, but error still appears again.

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

ollama version is 0.2.2

Originally created by @dashan996 on GitHub (Jul 26, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5973 ### What is the issue? After downloaded llama3.1:70b and run it, I meet this question. I have tried other models and everyone works well. I deleted it and download again, but error still appears again. ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version ollama version is 0.2.2
GiteaMirror added the bug label 2026-04-12 14:32:37 -05:00
Author
Owner

@keesj-riscure commented on GitHub (Jul 26, 2024):

Same here, on the second call it fails

image

<!-- gh-comment-id:2252107122 --> @keesj-riscure commented on GitHub (Jul 26, 2024): Same here, on the second call it fails ![image](https://github.com/user-attachments/assets/74f66185-9ec1-4787-a273-eda9be288409)
Author
Owner

@keesj-riscure commented on GitHub (Jul 26, 2024):

After also updating the server side it is working.

image

<!-- gh-comment-id:2252129864 --> @keesj-riscure commented on GitHub (Jul 26, 2024): After also updating the server side it is working. ![image](https://github.com/user-attachments/assets/0a7f8f33-d855-47b7-b25f-70e2bacb11a6)
Author
Owner

@ad1tyac0des commented on GitHub (Jul 26, 2024):

hey, could you elaborate how you fixed this?

<!-- gh-comment-id:2252164431 --> @ad1tyac0des commented on GitHub (Jul 26, 2024): hey, could you elaborate how you fixed this?
Author
Owner

@LiuZhiXiong commented on GitHub (Jul 26, 2024):

I also encountered this problem

<!-- gh-comment-id:2252202080 --> @LiuZhiXiong commented on GitHub (Jul 26, 2024): I also encountered this problem
Author
Owner

@ghost commented on GitHub (Jul 26, 2024):

Try restarting the ollama server. If you're using homebrew that would be brew services restart ollama

<!-- gh-comment-id:2252216252 --> @ghost commented on GitHub (Jul 26, 2024): Try restarting the ollama server. If you're using homebrew that would be `brew services restart ollama`
Author
Owner

@madlbx commented on GitHub (Jul 26, 2024):

hey, could you elaborate how you fixed this?

  1. stop ollama service systemclt stop ollama
  2. reinstall the latest version(0.3.0) of ollama based on your operating system
(Linux)
curl -fsSL https://ollama.com/install.sh | sh
ollama -v
ollama version is 0.3.0

I've solved it. Good luck

<!-- gh-comment-id:2252245534 --> @madlbx commented on GitHub (Jul 26, 2024): > hey, could you elaborate how you fixed this? 1. stop ollama service `systemclt stop ollama` 2. reinstall the latest version(0.3.0) of ollama based on your operating system ``` (Linux) curl -fsSL https://ollama.com/install.sh | sh ollama -v ollama version is 0.3.0 ``` I've solved it. Good luck
Author
Owner

@dashan996 commented on GitHub (Jul 26, 2024):

It is strange. I retry gemma2:27, llama3:70, glm, phi3:14b and so on. Everyone is ok. I also download a llama3.1:8b and it doesn't work eithor. Seems just llama3.1 can't work . Rebooting machine doesn't work!

<!-- gh-comment-id:2252245590 --> @dashan996 commented on GitHub (Jul 26, 2024): It is strange. I retry gemma2:27, llama3:70, glm, phi3:14b and so on. Everyone is ok. I also download a llama3.1:8b and it doesn't work eithor. Seems just llama3.1 can't work . Rebooting machine doesn't work!
Author
Owner

@shutter-cp commented on GitHub (Jul 26, 2024):

llama3.1:8b
Error: template: :28:7: executing "" at <.ToolCalls>: can't evaluate field ToolCalls in type *api.Message

<!-- gh-comment-id:2252280293 --> @shutter-cp commented on GitHub (Jul 26, 2024): llama3.1:8b Error: template: :28:7: executing "" at <.ToolCalls>: can't evaluate field ToolCalls in type *api.Message
Author
Owner

@LiuZhiXiong commented on GitHub (Jul 26, 2024):

hi, guys~
After I restarted ollama, the problem was solved and llama3.1 can run normally.

<!-- gh-comment-id:2252288267 --> @LiuZhiXiong commented on GitHub (Jul 26, 2024): hi, guys~ After I restarted ollama, the problem was solved and llama3.1 can run normally.
Author
Owner

@dashan996 commented on GitHub (Jul 26, 2024):

I have updated to ollama o.3 versinon , llama3.1 works wll no matter with 70B or 8B.

<!-- gh-comment-id:2252856328 --> @dashan996 commented on GitHub (Jul 26, 2024): I have updated to ollama o.3 versinon , llama3.1 works wll no matter with 70B or 8B.
Author
Owner

@hhstore commented on GitHub (Jul 26, 2024):

update + restart ollama, fix this problem.

 ollama -v
ollama version is 0.3.0
<!-- gh-comment-id:2252980934 --> @hhstore commented on GitHub (Jul 26, 2024): update + restart `ollama`, fix this problem. ```ruby ❯ ollama -v ollama version is 0.3.0 ```
Author
Owner

@jmorganca commented on GitHub (Jul 26, 2024):

Hi folks sorry about this error, it happens on versions 0.2.2-0.2.5 and is fixed when updating Ollama. We'll be careful to avoid this in the future

<!-- gh-comment-id:2253527412 --> @jmorganca commented on GitHub (Jul 26, 2024): Hi folks sorry about this error, it happens on versions 0.2.2-0.2.5 and is fixed when updating Ollama. We'll be careful to avoid this in the future
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#3733