Add dedicated quick question API
TestFlight / Build and upload (push) Successful in 1m42s

This commit is contained in:
2026-08-27 19:31:23 -07:00
parent 5f9fc82b86
commit 922172fc60
13 changed files with 269 additions and 44 deletions
+6 -5
View File
@@ -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) => {