From 6e6cf7830adb9ee866858d25e8cc4f4038e3e9f9 Mon Sep 17 00:00:00 2001 From: Walter Korman Date: Mon, 17 Mar 2025 16:54:40 -0700 Subject: [PATCH] fix quotes --- lib/ai/models.ts | 14 +++++++------- lib/ai/providers.ts | 38 +++++++++++++++++++------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/lib/ai/models.ts b/lib/ai/models.ts index 3ba03f8..a29652a 100644 --- a/lib/ai/models.ts +++ b/lib/ai/models.ts @@ -1,4 +1,4 @@ -export const DEFAULT_CHAT_MODEL: string = "chat-model-small"; +export const DEFAULT_CHAT_MODEL: string = 'chat-model-small'; interface ChatModel { id: string; @@ -8,13 +8,13 @@ interface ChatModel { export const chatModels: Array = [ { - id: "chat-model-small", - name: "Small model", - description: "Small model for fast, lightweight tasks", + id: 'chat-model-small', + name: 'Small model', + description: 'Small model for fast, lightweight tasks', }, { - id: "chat-model-reasoning", - name: "Reasoning model", - description: "Uses advanced reasoning", + id: 'chat-model-reasoning', + name: 'Reasoning model', + description: 'Uses advanced reasoning', }, ]; diff --git a/lib/ai/providers.ts b/lib/ai/providers.ts index 1993dc7..066e5f1 100644 --- a/lib/ai/providers.ts +++ b/lib/ai/providers.ts @@ -2,40 +2,40 @@ import { customProvider, extractReasoningMiddleware, wrapLanguageModel, -} from "ai"; -import { openai } from "@ai-sdk/openai"; -import { fireworks } from "@ai-sdk/fireworks"; -import { xai } from "@ai-sdk/xai"; -import { isTestEnvironment } from "../constants"; +} from 'ai'; +import { openai } from '@ai-sdk/openai'; +import { fireworks } from '@ai-sdk/fireworks'; +import { xai } from '@ai-sdk/xai'; +import { isTestEnvironment } from '../constants'; import { artifactModel, chatModel, reasoningModel, titleModel, -} from "./models.test"; +} from './models.test'; export const myProvider = isTestEnvironment ? customProvider({ languageModels: { - "chat-model-small": chatModel, - "chat-model-large": chatModel, - "chat-model-reasoning": reasoningModel, - "title-model": titleModel, - "artifact-model": artifactModel, + 'chat-model-small': chatModel, + 'chat-model-large': chatModel, + 'chat-model-reasoning': reasoningModel, + 'title-model': titleModel, + 'artifact-model': artifactModel, }, }) : customProvider({ languageModels: { - "chat-model-small": xai("grok-2-1212"), - "chat-model-reasoning": wrapLanguageModel({ - model: fireworks("accounts/fireworks/models/deepseek-r1"), - middleware: extractReasoningMiddleware({ tagName: "think" }), + 'chat-model-small': xai('grok-2-1212'), + 'chat-model-reasoning': wrapLanguageModel({ + model: fireworks('accounts/fireworks/models/deepseek-r1'), + middleware: extractReasoningMiddleware({ tagName: 'think' }), }), - "title-model": xai("grok-2-1212"), - "artifact-model": xai("grok-2-1212"), + 'title-model': xai('grok-2-1212'), + 'artifact-model': xai('grok-2-1212'), }, imageModels: { - "small-model": openai.image("dall-e-2"), - "large-model": openai.image("dall-e-3"), + 'small-model': openai.image('dall-e-2'), + 'large-model': openai.image('dall-e-3'), }, });