Private
Public Access
1
0

Add AI chat with Ollama tool calling for financial queries

Conversational AI chat that uses Ollama's native tool-calling API to query
transactions, spending reports, account balances, dashboard summaries, and
update transaction categories through natural language. Includes persistent
conversation history, a full-page chat UI with sidebar, and rich inline
rendering of tool results (tables, alerts, cards).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Catherine Renelle
2026-02-09 23:34:16 -05:00
parent 1ceeca0fb6
commit 846edad2a4
20 changed files with 3237 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import api from './api'
import type { ChatConversation, ChatConversationDetail, SendChatMessageResponse } from '@/types'
export const chatApi = {
sendMessage: (data: { conversationId?: string; message: string }) =>
api.post<SendChatMessageResponse>('/chat/send', data),
getConversations: () =>
api.get<ChatConversation[]>('/chat/conversations'),
getConversation: (id: string) =>
api.get<ChatConversationDetail>(`/chat/conversations/${id}`),
deleteConversation: (id: string) =>
api.delete(`/chat/conversations/${id}`),
}