feat(ollama): add support for base64-encoded images in chat messages and forward them to the Ollama provider
This commit is contained in:
@@ -6,6 +6,8 @@ import * as plugins from './plugins.js';
|
||||
export interface ChatMessage {
|
||||
role: 'assistant' | 'user' | 'system';
|
||||
content: string;
|
||||
/** Base64-encoded images for vision-capable models */
|
||||
images?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -15,6 +17,8 @@ export interface ChatOptions {
|
||||
systemMessage: string;
|
||||
userMessage: string;
|
||||
messageHistory: ChatMessage[];
|
||||
/** Base64-encoded images for the current message (vision-capable models) */
|
||||
images?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user