Remove dead chat suggestions wiring (#5665)

This commit is contained in:
alkinun 2026-05-21 12:15:12 +03:00 committed by GitHub
commit bad5ff4e1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,6 @@ import {
ExportedMessageRepository,
type ExportedMessageRepositoryItem,
type PendingAttachment,
Suggestions,
type LocalRuntimeOptions,
type ThreadHistoryAdapter,
type ThreadMessage,
@ -58,29 +57,6 @@ import {
import { syncExportedRepositoryToDexie } from "./utils/delete-thread-message";
import { getImageInputUnavailableReason } from "./utils/image-input-support";
const DEFAULT_SUGGESTIONS = [
{
title: "How do you fine-tune an audio model with Unsloth?",
label: "Audio fine-tuning",
prompt: "How do you fine-tune an audio model with Unsloth?",
},
{
title: "Create a live weather dashboard in HTML using no API key. Show me the code",
label: "Weather dashboard",
prompt: "Create a live weather dashboard in HTML using no API key. Show me the code",
},
{
title: "Solve the integral of x·sin(x), and verify it",
label: "Integral",
prompt: "Solve the integral of x·sin(x), and verify it step by step",
},
{
title: "Draw an SVG of a cute sloth & show the code",
label: "SVG sloth",
prompt: "Draw an SVG of a cute sloth & show the code",
},
];
type TitleResponse = {
choices?: Array<{
message?: {
@ -1034,9 +1010,7 @@ export function ChatRuntimeProvider({
adapter: createDexieAdapter(modelType, pairId),
});
const aui = useAui({
suggestions: Suggestions(DEFAULT_SUGGESTIONS),
});
const aui = useAui({});
return (
<AssistantRuntimeProvider runtime={runtime} aui={aui}>