Affected by GO-2025-3548
and 8 other vulnerabilities
GO-2025-3548 : Ollama Vulnerable to Denial of Service (DoS) via Crafted GZIP in github.com/ollama/ollama
GO-2025-3557 : Ollama Allocation of Resources Without Limits or Throttling vulnerability in github.com/ollama/ollama
GO-2025-3558 : Ollama Allows Out-of-Bounds Read in github.com/ollama/ollama
GO-2025-3559 : Ollama Divide By Zero vulnerability in github.com/ollama/ollama
GO-2025-3582 : Ollama Denial of Service (DoS) via Null Pointer Dereference in github.com/ollama/ollama
GO-2025-3689 : Ollama Divide by Zero Vulnerability in github.com/ollama/ollama
GO-2025-3695 : Ollama Server Vulnerable to Denial of Service (DoS) Attack in github.com/ollama/ollama
GO-2025-3824 : Ollama vulnerable to Cross-Domain Token Exposure in github.com/ollama/ollama
GO-2025-4251 : Ollama has missing authentication enabling attackers to perform model management operations in github.com/ollama/ollama
Discover Packages
github.com/ollama/ollama
tools
package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: May 27, 2025
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
NewParser creates a new tool call parser from a template. It extracts the tool call format,
prefix, and field names from the template to use for parsing tool calls from model output.
Returns an error if the template does not contain valid tool call formatting.
Add processes a string input to parse tool calls and content.
It handles prefix detection and JSON parsing to extract tool calls.
Returns:
tools: Any parsed tool calls
content: Non-tool call content
Source Files
¶
Click to show internal directories.
Click to hide internal directories.