This commit is contained in:
+6
-5
@@ -43,6 +43,7 @@ import {
|
||||
getSearch,
|
||||
listWorkspaceItems,
|
||||
runCompletionStream,
|
||||
runQuickQuestionStream,
|
||||
runSearchStream,
|
||||
suggestChatTitle,
|
||||
updateChatTitle,
|
||||
@@ -79,6 +80,7 @@ import {
|
||||
resolveSidebarSelectionAfterRefresh,
|
||||
type SidebarSelection,
|
||||
} from "@/lib/sidebar-selection";
|
||||
import { buildQuickQuestionRequest } from "@/lib/quick-question";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
type DraftSelectionKind = "chat" | "search";
|
||||
@@ -3225,13 +3227,12 @@ export default function App() {
|
||||
let streamErrorMessage: string | null = null;
|
||||
|
||||
try {
|
||||
await runCompletionStream(
|
||||
{
|
||||
persist: false,
|
||||
await runQuickQuestionStream(
|
||||
buildQuickQuestionRequest({
|
||||
provider: quickProvider,
|
||||
model: selectedModel,
|
||||
messages: [{ role: "user", content }],
|
||||
},
|
||||
content,
|
||||
}),
|
||||
{
|
||||
onToolCall: (payload) => {
|
||||
setQuickQuestionMessages((current) => {
|
||||
|
||||
Reference in New Issue
Block a user