Spaces:
Sleeping

MingruiZhang commited on
Commit
ba9285c
·
unverified ·
1 Parent(s): 0bb36de

feat: conversation restructure, assistant message should be just code (#89)

Browse files

![image](https://github.com/landing-ai/vision-agent-ui/assets/5669963/94e99862-a986-40d5-abb5-aab367618e67)


![image](https://github.com/landing-ai/vision-agent-ui/assets/5669963/a185e979-b0fa-4763-a3ac-d3da6a20230c)


Also fix backwards compatibly from
https://github.com/landing-ai/vision-agent-ui/pull/86

13 files changed +93 -148
Files changed (13)
app/api/vision-agent/route.ts+14-43
app/page.tsx+1-1
components/CodeResultDisplay.tsx+11-6
components/chat/ChatList.tsx+7-3
components/chat/ChatMessage.tsx+13-16
components/chat/TopPrompt.tsx+4-9
components/ui/CodeBlock.tsx+1-1
components/ui/Icons.tsx+1-1
lib/db/prisma.ts+23-12
lib/hooks/useVisionAgent.ts+4-6
lib/types.ts-18
lib/utils/content.ts+9-27
lib/utils/message.ts+5-5