From 73aa95263cf8aad4ab1093e107ef11d27ece7981 Mon Sep 17 00:00:00 2001 From: YoVinchen Date: Thu, 4 Dec 2025 22:43:54 +0800 Subject: [PATCH] feat(pricing): add GPT-5 Codex model pricing presets Add pricing configuration for GPT-5 Codex variants to support cost tracking for Codex-specific models. Changes: - Add gpt-5-codex model with standard GPT-5 pricing - Add gpt-5-1-codex model with standard GPT-5.1 pricing - Input: $1.25/M tokens, Output: $10/M tokens - Cache read: $0.125/M tokens, Cache creation: $0 This ensures accurate cost calculation for Codex API requests using GPT-5 Codex models. --- src-tauri/src/database/schema.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-tauri/src/database/schema.rs b/src-tauri/src/database/schema.rs index 047b34f01..11b399ad6 100644 --- a/src-tauri/src/database/schema.rs +++ b/src-tauri/src/database/schema.rs @@ -633,6 +633,8 @@ impl Database { // GPT-5 系列(model_id 使用短横线格式) ("gpt-5", "GPT-5", "1.25", "10", "0.125", "0"), ("gpt-5-1", "GPT-5.1", "1.25", "10", "0.125", "0"), + ("gpt-5-codex", "GPT-5 Codex", "1.25", "10", "0.125", "0"), + ("gpt-5-1-codex", "GPT-5.1 Codex", "1.25", "10", "0.125", "0"), // Gemini 3 系列 ( "gemini-3-pro-preview",