mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-02 22:32:27 +08:00
refactor: chat-example-panel.tsx
This commit is contained in:
@@ -66,9 +66,9 @@ ${lastMessage.content}
|
||||
? [{ role: "system", content: systemMessage }, { ...lastMessage, content: formattedContent }]
|
||||
: [...messages.slice(0, -1), { ...lastMessage, content: formattedContent }];
|
||||
|
||||
console.log(enhancedMessages);
|
||||
const result = streamText({
|
||||
// model: google("gemini-2.0-flash"),
|
||||
// model: openai("chatgpt-4o-latest"),
|
||||
model: openai("gpt-4o"),
|
||||
toolCallStreaming: true,
|
||||
messages: enhancedMessages,
|
||||
|
||||
@@ -4,7 +4,7 @@ import { DrawIoEmbed, DrawIoEmbedRef } from "react-drawio";
|
||||
import { useRef, useState } from "react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { extractDiagramXML } from "./extract_xml";
|
||||
import ChatPanel from "@/components/chatPanel";
|
||||
import ChatPanel from "@/components/chat-panel";
|
||||
|
||||
export default function Home() {
|
||||
const drawioRef = useRef<DrawIoEmbedRef>(null);
|
||||
|
||||
Reference in New Issue
Block a user