Mishig commited on
[Fix] small fixes in websearch generateQuery (#727)
Browse files39 unmodified lines404142434445467 unmodified lines5455565758596061626364653 unmodified lines6970717273747539 unmodified linescontent: `Previous questions:- When is the next formula 1 grand prix?Current Question: Where is it being hosted ?`,},{from: "assistant",7 unmodified linesfrom: "assistant",content: "Epson F2270 DTG printer printhead",},{ from: "user", content: "What were the news yesterday ?" },{from: "assistant",content: `news ${format(new Date(Date.now() - 864e5), "MMMM d, yyyy")}`,},{ from: "user", content: "What is the current weather in Paris ?" },{ from: "assistant", content: `weather in Paris ${currentDate}` },{from: "user",3 unmodified lines.map(({ content }) => `- ${content}`).join("\n")}`: "") +"\n\nCurrent Question:" +lastMessage.content,},];39 unmodified lines404142434445467 unmodified lines5455565758596061626364653 unmodified lines6970717273747539 unmodified linescontent: `Previous questions:- When is the next formula 1 grand prix?Current Question: Where is it being hosted?`,},{from: "assistant",7 unmodified linesfrom: "assistant",content: "Epson F2270 DTG printer printhead",},{ from: "user", content: "What were the news yesterday?" },{from: "assistant",content: `news ${format(new Date(Date.now() - 864e5), "MMMM d, yyyy")}`,},{ from: "user", content: "What is the current weather in Paris?" },{ from: "assistant", content: `weather in Paris ${currentDate}` },{from: "user",3 unmodified lines.map(({ content }) => `- ${content}`).join("\n")}`: "") +"\n\nCurrent Question: " +lastMessage.content,},];
src/lib/server/websearch/generateQuery.ts+4-4