pass image to agent, render image in chat

This commit is contained in:
lemonknowsall committed 2025-11-15 20:43:35 -08:00
1 parent a6caf93e8b
commit 42637458c9
8 files changed
+279 -96

No files matched your search

+4 -1
View File
@@ -114,7 +114,10 @@ export function useAIChat({
}, [projectId]);
// Actions
const sendMessage = useCallback(async (content: string | Array<OpenAI.Chat.Completions.ChatCompletionContentPartText>, providerModel: string) => {
const sendMessage = useCallback(async (
content: string | Array<OpenAI.Chat.Completions.ChatCompletionContentPartText | OpenAI.Chat.Completions.ChatCompletionContentPartImage>,
providerModel: string
) => {
try {
await initSession();
await sessionManager.sendMessage(projectId, content, providerModel);