mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
chore: lint fixes
This commit is contained in:
@@ -548,8 +548,7 @@ export const userTableServerTool: BaseServerTool<UserTableArgs, UserTableResult>
|
||||
} else {
|
||||
return {
|
||||
success: false,
|
||||
message:
|
||||
'Provide either "updates" array or "columnName" + "values" map',
|
||||
message: 'Provide either "updates" array or "columnName" + "values" map',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -137,9 +137,7 @@ export const UserTableArgsSchema = z.object({
|
||||
rowId: z.string().optional(),
|
||||
data: z.record(z.any()).optional(),
|
||||
rows: z.array(z.record(z.any())).optional(),
|
||||
updates: z
|
||||
.array(z.object({ rowId: z.string(), data: z.record(z.any()) }))
|
||||
.optional(),
|
||||
updates: z.array(z.object({ rowId: z.string(), data: z.record(z.any()) })).optional(),
|
||||
rowIds: z.array(z.string()).optional(),
|
||||
values: z.record(z.any()).optional(),
|
||||
filter: z.any().optional(),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Environment utility functions for consistent environment detection across the application
|
||||
*/
|
||||
import { env, getEnv, isFalsy, isTruthy } from './env'
|
||||
import { env, isFalsy, isTruthy } from './env'
|
||||
|
||||
/**
|
||||
* Is the application running in production mode
|
||||
@@ -22,8 +22,8 @@ export const isTest = env.NODE_ENV === 'test'
|
||||
* Is this the hosted version of the application
|
||||
*/
|
||||
export const isHosted = true
|
||||
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
|
||||
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
|
||||
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.sim.ai' ||
|
||||
// getEnv('NEXT_PUBLIC_APP_URL') === 'https://www.staging.sim.ai'
|
||||
|
||||
/**
|
||||
* Is billing enforcement enabled
|
||||
|
||||
@@ -1173,9 +1173,7 @@ export async function batchUpdateRows(
|
||||
}
|
||||
})
|
||||
|
||||
logger.info(
|
||||
`[${requestId}] Batch updated ${mergedUpdates.length} rows in table ${data.tableId}`
|
||||
)
|
||||
logger.info(`[${requestId}] Batch updated ${mergedUpdates.length} rows in table ${data.tableId}`)
|
||||
|
||||
return {
|
||||
affectedCount: mergedUpdates.length,
|
||||
|
||||
@@ -109,7 +109,7 @@ export const chatTool: ToolConfig<PerplexityChatParams, PerplexityChatResponse>
|
||||
const inputTokens = usage.prompt_tokens
|
||||
const outputTokens = usage.completion_tokens
|
||||
|
||||
let tokenCost =
|
||||
const tokenCost =
|
||||
(inputTokens * pricing.inputPerM) / 1_000_000 +
|
||||
(outputTokens * pricing.outputPerM) / 1_000_000
|
||||
const requestFee = pricing.requestPer1K / 1000
|
||||
|
||||
Reference in New Issue
Block a user