Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

@robustonian/ollama-ai-provider-fork

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robustonian/ollama-ai-provider-fork

Vercel AI Provider for running LLMs locally using Ollama

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

Ollama Provider Fork for the Vercel AI SDK

The Ollama Provider Fork for the Vercel AI SDK contains enhanced language model support for the Ollama APIs with improved streaming and tool calls support, plus embedding model support for the Ollama embeddings API.

Requirements

This provider requires Ollama >= 0.5.0

Setup

The Ollama provider fork is available in the ollama-ai-provider-fork module. You can install it with

pnpm add @robustonian/ollama-ai-provider-fork

Provider Instance

You can import the default provider instance ollama from @robustonian/ollama-ai-provider-fork:

import { ollama } from '@robustonian/ollama-ai-provider-fork';

Example

import { ollama } from '@robustonian/ollama-ai-provider-fork';
import { generateText } from 'ai';

const { text } = await generateText({
  model: ollama('phi3'),
  prompt: 'Write a vegetarian lasagna recipe for 4 people.',
});

Enhanced Features

This fork includes:

  • Enhanced streaming support
  • Improved tool calls functionality
  • Better inference from streaming responses
  • Comprehensive test coverage for Node.js and Edge environments

Documentation

Please check out the Ollama provider documentation for more information.

Keywords

ai

FAQs

Package last updated on 15 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts