Skip to content

Commit

Permalink
v0.97.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel committed Dec 14, 2023
1 parent abe43bd commit 56e6df1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## v0.97.0 - 2023-12-14

### Added

- **breaking change**: Ollama image (vision) support. This changes the Ollama prompt format. You can add `.withTextPrompt()` to existing Ollama text generators to get a text prompt like before.

Vision example:

```ts
import { ollama, streamText } from "modelfusion";

const textStream = await streamText(
ollama.TextGenerator({
model: "bakllava",
maxCompletionTokens: 1024,
temperature: 0,
}),
{
prompt: "Describe the image in detail",
images: [image], // base-64 encoded png or jpeg
}
);
```

### Changed

- **breaking change**: Switch Ollama settings to camelCase to align with the rest of the library.

## v0.96.0 - 2023-12-14

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "modelfusion",
"description": "The TypeScript library for building multi-modal AI applications.",
"version": "0.96.0",
"version": "0.97.0",
"author": "Lars Grammel",
"license": "MIT",
"keywords": [
Expand Down

1 comment on commit 56e6df1

@vercel
Copy link

@vercel vercel bot commented on 56e6df1 Dec 14, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.