Python & JavaScript Libraries

Practical AI: Tools, Models & Frameworksapi

What changed

Python & JavaScript Libraries January 23, 2024 The initial versions of the Ollama Python and JavaScript libraries are now available: Both libraries make it possible to integrate new and existing apps with Ollama in a few lines of code, and share the features and feel of the Ollama REST API. ''' ollama.create(model='example', modelfile=modelfile) Custom client ollama = Client(host='my.ollama.host') More examples are available in the GitHub repositories for the Python and JavaScript libraries. New GitHub handle These libraries, and the main Ollama repository now live in a new GitHub organization: ollama!

Why it matters

A concrete addition to Practical AI: Tools, Models & Frameworks: it changes what's available to builders today rather than being general commentary.

How it compares

Related prior coverage to compare against:

  • Introducing Agents.js: Give tools to your LLMs using JavaScript
  • OpenAI compatibility
  • Web search

Sources