Restore Ultracite + fix sidebar (#1233)

This commit is contained in:
Hayden Bleasel 2025-09-21 11:02:31 -07:00 committed by GitHub
parent 8fbfc253fa
commit 947ed094a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
177 changed files with 6908 additions and 8306 deletions

View file

@ -1,28 +1,28 @@
import type { LanguageModel } from 'ai';
import type { LanguageModel } from "ai";
const createMockModel = (): LanguageModel => {
return {
specificationVersion: 'v2',
provider: 'mock',
modelId: 'mock-model',
defaultObjectGenerationMode: 'tool',
specificationVersion: "v2",
provider: "mock",
modelId: "mock-model",
defaultObjectGenerationMode: "tool",
supportedUrls: [],
supportsImageUrls: false,
supportsStructuredOutputs: false,
doGenerate: async () => ({
rawCall: { rawPrompt: null, rawSettings: {} },
finishReason: 'stop',
finishReason: "stop",
usage: { inputTokens: 10, outputTokens: 20, totalTokens: 30 },
content: [{ type: 'text', text: 'Hello, world!' }],
content: [{ type: "text", text: "Hello, world!" }],
warnings: [],
}),
doStream: async () => ({
stream: new ReadableStream({
start(controller) {
controller.enqueue({
type: 'text-delta',
id: 'mock-id',
delta: 'Mock response',
type: "text-delta",
id: "mock-id",
delta: "Mock response",
});
controller.close();
},