Skip to content

Conversation

@stoyanov-kaloyan
Copy link
Contributor

Added a version method to retrieve Ollama server version. It fetches it from /api/version

Usage:

import { Ollama } from 'ollama'

const ollama = new Ollama({ host: 'http://127.0.0.1:11434' })
const res = await ollama.version()

Addresses #258

Copy link
Collaborator

@BruceMacD BruceMacD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@BruceMacD BruceMacD merged commit 75baea0 into ollama:main Nov 12, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants