mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
AIX: fix OpenAI Responses - Tool re-parsing
This commit is contained in:
@@ -1438,10 +1438,11 @@ export namespace OpenAIWire_Responses_Tools {
|
||||
search_context_size: z.enum(['low', 'medium', 'high']).optional(),
|
||||
user_location: z.object({
|
||||
type: z.literal('approximate'),
|
||||
city: z.string().optional(),
|
||||
country: z.string().optional(),
|
||||
region: z.string().optional(),
|
||||
timezone: z.string().optional(),
|
||||
// API echoes these as `null` when unset, not omitted - so .nullish()
|
||||
city: z.string().nullish(),
|
||||
country: z.string().nullish(),
|
||||
region: z.string().nullish(),
|
||||
timezone: z.string().nullish(),
|
||||
}).optional(),
|
||||
external_web_access: z.boolean().optional(),
|
||||
});
|
||||
|
||||
@@ -72,7 +72,7 @@ const geminiExpFree: ModelDescriptionSchema['chatPrice'] = {
|
||||
};
|
||||
|
||||
|
||||
// Pricing based on https://ai.google.dev/pricing (Apr 15, 2026)
|
||||
// Pricing based on https://ai.google.dev/pricing (Apr 22, 2026)
|
||||
|
||||
const gemini31FlashLitePricing: ModelDescriptionSchema['chatPrice'] = {
|
||||
input: 0.25, // text/image/video; audio is $0.50 but we don't differentiate yet
|
||||
@@ -142,7 +142,7 @@ const gemini25ProPreviewTTSPricing: ModelDescriptionSchema['chatPrice'] = {
|
||||
|
||||
const gemini31FlashTTSPricing: ModelDescriptionSchema['chatPrice'] = {
|
||||
input: 1.00, // text input
|
||||
// output: 20.00, // AUDIO - not ready for audio output yet (as of Apr 15, 2026)
|
||||
// output: 20.00, // AUDIO - not ready for audio output yet (as of Apr 22, 2026)
|
||||
};
|
||||
|
||||
const geminiRoboticsER16Pricing: ModelDescriptionSchema['chatPrice'] = {
|
||||
|
||||
Reference in New Issue
Block a user