diff --git a/package.json b/package.json index 60a34a34..e4d03e70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hermes-web-ui", - "version": "0.5.5", + "version": "0.5.6", "description": "Self-hosted AI chat dashboard for Hermes Agent — multi-model (Claude, GPT, Gemini, DeepSeek) web UI with Telegram, Discord, Slack, WhatsApp integration", "repository": { "type": "git", diff --git a/packages/client/src/api/hermes/chat.ts b/packages/client/src/api/hermes/chat.ts index 444a036d..3a6b7461 100644 --- a/packages/client/src/api/hermes/chat.ts +++ b/packages/client/src/api/hermes/chat.ts @@ -1,13 +1,18 @@ import { io, type Socket } from 'socket.io-client' import { request, getBaseUrlValue, getApiKey } from '../client' +export type ContentBlock = + | { type: 'text'; text: string } + | { type: 'image'; name: string; path: string; media_type: string } + | { type: 'file'; name: string; path: string; media_type?: string } + export interface ChatMessage { role: 'user' | 'assistant' | 'system' - content: string + content: string | ContentBlock[] } export interface StartRunRequest { - input: string | ChatMessage[] + input: string | ContentBlock[] instructions?: string session_id?: string model?: string diff --git a/packages/client/src/components/hermes/chat/MessageItem.vue b/packages/client/src/components/hermes/chat/MessageItem.vue index ac80a11f..deed7972 100644 --- a/packages/client/src/components/hermes/chat/MessageItem.vue +++ b/packages/client/src/components/hermes/chat/MessageItem.vue @@ -1,9 +1,10 @@