←新闻详情

Ollama Blog更新于 10月14日 09:25

Ollama 发布 Python 与 JavaScript 官方库

Python & JavaScript Libraries · Ollama Blog

AI 导读

Ollama 推出 Python 和 JavaScript 库的初始版本,开发者可用几行代码将应用接入 Ollama,并共享 Ollama REST API 的功能与体验。两个库支持 Ollama 的全部功能,示例代码见对应 GitHub 仓库。这些库与主仓库已迁至新的 GitHub 组织 ollama。

正文

当前显示原文,中文全文译文尚未就绪。

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.

Both libraries support Ollama’s full set of features. Here are some examples in Python:

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! Thank you to all the amazing community members who maintain libraries to interact with Ollama via Dart, Swift, C#, Java, PHP, Rust and more – a full list is available here – please don’t hesitate to make a pull request to add a library you’ve built or enjoy using.

Special thank you to Saul, the original author of ollama-js, and everyone else who has worked on community libraries to make Ollama more accessible from different programming languages.

来源

Ollama Blog