ai-sdk-ollama breaking changes
ai-sdk-ollama 4.0.0 (June 25, 2026) is its newest release with breaking changes, 23 of them. The first: Removed ToolLoopAgentOnFinishCallback. Every breaking API change we have recorded in ai-sdk-ollama on npm: 23 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.6.5, released December 1, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
ai-sdk-ollama 4.0.0 breaking changes
- Removed
ToolLoopAgentOnFinishCallback
AI SDK v7 renamed this re-exported agent callback type. Use GenerateTextOnFinishCallback instead. npmjs.com - Removed
ToolLoopAgentOnStepFinishCallback
AI SDK v7 renamed this re-exported agent callback type. Use GenerateTextOnStepFinishCallback instead. npmjs.com - Configuration changed
The peer dependency moves to ai@^7 and the provider dependencies to @ai-sdk/provider@4 and @ai-sdk/provider-utils@5. Apps on earlier ai versions must upgrade to ai@^7. github.com - Signature changed
OllamaEmbeddingRerankingModel
Was class OllamaEmbeddingRerankingModel implements RerankingModelV3; now class OllamaEmbeddingRerankingModel implements RerankingModelV4. npmjs.com - Signature changed
OllamaEmbeddingRerankingModel.doRerank
Was doRerank({documents, query, topN}: RerankingModelV3CallOptions): Promise<Awaited<ReturnType<RerankingModelV3['doRerank']>>>; now doRerank({documents, query, topN}: RerankingModelV4CallOptions)... npmjs.com - Signature changed
OllamaEmbeddingRerankingModel.specificationVersion
Was readonly specificationVersion: "v3"; now readonly specificationVersion: "v4". npmjs.com - Signature changed
OllamaImageModel
Was class OllamaImageModel implements ImageModelV3; now class OllamaImageModel implements ImageModelV4. npmjs.com - Signature changed
OllamaImageModel.doGenerate
Was doGenerate(options: ImageModelV3CallOptions): Promise<{images: Array<string>; warnings: Array<SharedV3Warning>; response: {timestamp: Date; modelId: string; headers: Record<string, string> | undefined;}; usage?: ImageModelV3Usage... npmjs.com - Signature changed
OllamaImageModel.specificationVersion
Was readonly specificationVersion: "v3"; now readonly specificationVersion: "v4". npmjs.com - Signature changed
OllamaProvider
Was interface OllamaProvider extends ProviderV3; now interface OllamaProvider extends ProviderV4. npmjs.com - Signature changed
OllamaProvider.__call
Was (modelId: string, settings?: OllamaChatSettings): LanguageModelV3; now (modelId: string, settings?: OllamaChatSettings): LanguageModelV4. npmjs.com - Signature changed
OllamaProvider.chat
Was chat(modelId: string, settings?: OllamaChatSettings): LanguageModelV3; now chat(modelId: string, settings?: OllamaChatSettings): LanguageModelV4. npmjs.com - Signature changed
OllamaProvider.embedding
Was embedding(modelId: string, settings?: OllamaEmbeddingSettings): EmbeddingModelV3; now embedding(modelId: string, settings?: OllamaEmbeddingSettings): EmbeddingModelV4. npmjs.com - Signature changed
OllamaProvider.embeddingReranking
Was embeddingReranking(modelId: string, settings?: OllamaEmbeddingRerankingSettings): RerankingModelV3; now embeddingReranking(modelId: string, settings?: OllamaEmbeddingRerankingSettings): RerankingModelV4. npmjs.com - Signature changed
OllamaProvider.languageModel
Was languageModel(modelId: string, settings?: OllamaChatSettings): LanguageModelV3; now languageModel(modelId: string, settings?: OllamaChatSettings): LanguageModelV4. npmjs.com - Signature changed
OllamaProvider.reranking
Was reranking(modelId: string, settings?: OllamaRerankingSettings): RerankingModelV3; now reranking(modelId: string, settings?: OllamaRerankingSettings): RerankingModelV4. npmjs.com - Signature changed
OllamaProvider.rerankingModel
Was rerankingModel(modelId: string, settings?: OllamaRerankingSettings): RerankingModelV3; now rerankingModel(modelId: string, settings?: OllamaRerankingSettings): RerankingModelV4. npmjs.com - Signature changed
OllamaProvider.textEmbedding
Was textEmbedding(modelId: string, settings?: OllamaEmbeddingSettings): EmbeddingModelV3; now textEmbedding(modelId: string, settings?: OllamaEmbeddingSettings): EmbeddingModelV4. npmjs.com - Signature changed
OllamaProvider.textEmbeddingModel
Was textEmbeddingModel(modelId: string, settings?: OllamaEmbeddingSettings): EmbeddingModelV3; now textEmbeddingModel(modelId: string, settings?: OllamaEmbeddingSettings): EmbeddingModelV4. npmjs.com - Signature changed
OllamaRerankingModel
Was class OllamaRerankingModel implements RerankingModelV3; now class OllamaRerankingModel implements RerankingModelV4. npmjs.com - Signature changed
OllamaRerankingModel.doRerank
Was doRerank({documents, headers, query, topN, abortSignal, providerOptions}: RerankingModelV3CallOptions): Promise<Awaited<ReturnType<RerankingModelV3['doRerank']>>>; now doRerank({documents, headers, query, topN, abortSignal... npmjs.com - Signature changed
OllamaRerankingModel.specificationVersion
Was readonly specificationVersion: "v3"; now readonly specificationVersion: "v4". npmjs.com - Signature changed
ToolDefinition.execute
Was execute: (params: Record<string, unknown>) => Promise<unknown>; now execute: (parameters: Record<string, unknown>) => Promise<unknown>. npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.