Skip to content

Commit 9fc8b4a

Browse files
fix: format vercel/index.ts for biome CI
Break long conditionals across multiple lines and use single quotes for string containing escaped double quotes. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 29b1ac5 commit 9fc8b4a

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

packages/tools/src/vercel/index.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,12 @@ const wrapVercelLanguageModel = <T extends LanguageModel>(
128128
)
129129
}
130130

131-
if ((options?.addMemory ?? "never") === "always" && !options?.conversationId) {
131+
if (
132+
(options?.addMemory ?? "never") === "always" &&
133+
!options?.conversationId
134+
) {
132135
throw new Error(
133-
"conversationId is required when addMemory is \"always\" — provide it via options.conversationId to group messages into a single document",
136+
'conversationId is required when addMemory is "always" — provide it via options.conversationId to group messages into a single document',
134137
)
135138
}
136139

@@ -158,7 +161,12 @@ const wrapVercelLanguageModel = <T extends LanguageModel>(
158161
const result = await model.doGenerate(transformedParams as any)
159162

160163
const userMessage = getLastUserMessage(params)
161-
if (ctx.addMemory === "always" && ctx.conversationId && userMessage && userMessage.trim()) {
164+
if (
165+
ctx.addMemory === "always" &&
166+
ctx.conversationId &&
167+
userMessage &&
168+
userMessage.trim()
169+
) {
162170
const assistantResponseText = extractAssistantResponseText(
163171
result.content as unknown[],
164172
)

0 commit comments

Comments
 (0)