This commit is contained in:
Enrico Ros
2024-11-08 23:00:22 -08:00
parent d75307691f
commit b90b71bb58
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ export function imageTokensForLLM(width: number | undefined, height: number | un
return 258;
default:
console.warn('Unhandled token preview for image with llm:', llm.vId);
console.log(`[DEV] Unhandled token preview for image with llm: ${llm.vId}`);
return 0;
}
}
+1 -1
View File
@@ -375,7 +375,7 @@ export namespace AixWire_API {
export const Model_schema = z.object({
id: z.string(),
temperature: z.number().min(0).max(2).optional(),
maxTokens: z.number().min(1).max(1000000).optional(),
maxTokens: z.number().min(1).optional(),
});
/// Context
@@ -38,7 +38,7 @@ export type OpenAIAccessSchema = z.infer<typeof openAIAccessSchema>;
export const openAIModelSchema = z.object({
id: z.string(),
temperature: z.number().min(0).max(2).optional(),
maxTokens: z.number().min(1).max(1000000).optional(),
maxTokens: z.number().min(1).optional(),
});
export type OpenAIModelSchema = z.infer<typeof openAIModelSchema>;