mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Bits
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user