Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Remove Gemini 3 preview models

Abi Raja45d4ada52c1a
diff --git a/backend/agent/providers/gemini.py b/backend/agent/providers/gemini.py
index c803d201..71515bb3 100644
--- a/backend/agent/providers/gemini.py
+++ b/backend/agent/providers/gemini.py
@@ -46,19 +46,16 @@ def _get_gemini_api_model_name(model: Llm) -> str:
Llm.GEMINI_3_1_PRO_PREVIEW_LOW,
]:
return "gemini-3.1-pro-preview"
- if model in [Llm.GEMINI_3_PRO_PREVIEW_HIGH, Llm.GEMINI_3_PRO_PREVIEW_LOW]:
- return "gemini-3-pro-preview"
return model.value
def _get_thinking_level_for_model(model: Llm) -> str:
if model in [
Llm.GEMINI_3_FLASH_PREVIEW_HIGH,
- Llm.GEMINI_3_PRO_PREVIEW_HIGH,
Llm.GEMINI_3_1_PRO_PREVIEW_HIGH,
]:
return "high"
- if model in [Llm.GEMINI_3_PRO_PREVIEW_LOW, Llm.GEMINI_3_1_PRO_PREVIEW_LOW]:
+ if model == Llm.GEMINI_3_1_PRO_PREVIEW_LOW:
return "low"
if model == Llm.GEMINI_3_1_PRO_PREVIEW_MEDIUM:
return "medium"
diff --git a/backend/llm.py b/backend/llm.py
index 95ff646b..2e6bf4a5 100644
--- a/backend/llm.py
+++ b/backend/llm.py
@@ -25,8 +25,6 @@ class Llm(Enum):
GEMINI_3_1_PRO_PREVIEW_HIGH = "gemini-3.1-pro-preview (high thinking)"
GEMINI_3_1_PRO_PREVIEW_MEDIUM = "gemini-3.1-pro-preview (medium thinking)"
GEMINI_3_1_PRO_PREVIEW_LOW = "gemini-3.1-pro-preview (low thinking)"
- GEMINI_3_PRO_PREVIEW_HIGH = "gemini-3-pro-preview (high thinking)"
- GEMINI_3_PRO_PREVIEW_LOW = "gemini-3-pro-preview (low thinking)"
class Completion(TypedDict):
@@ -59,8 +57,6 @@ MODEL_PROVIDER: dict[Llm, str] = {
Llm.GEMINI_3_1_PRO_PREVIEW_HIGH: "gemini",
Llm.GEMINI_3_1_PRO_PREVIEW_MEDIUM: "gemini",
Llm.GEMINI_3_1_PRO_PREVIEW_LOW: "gemini",
- Llm.GEMINI_3_PRO_PREVIEW_HIGH: "gemini",
- Llm.GEMINI_3_PRO_PREVIEW_LOW: "gemini",
}
# Convenience sets for membership checks
diff --git a/backend/video/cost_estimation.py b/backend/video/cost_estimation.py
index 6cf90460..bf7d13d3 100644
--- a/backend/video/cost_estimation.py
+++ b/backend/video/cost_estimation.py
@@ -50,10 +50,6 @@ GEMINI_PRICING = {
"input_per_million": 2.00,
"output_per_million": 12.00,
},
- "gemini-3-pro-preview": {
- "input_per_million": 2.00, # prompts <= 200k tokens
- "output_per_million": 12.00, # including thinking tokens
- },
}
@@ -66,8 +62,6 @@ def get_model_api_name(model: Llm) -> str:
Llm.GEMINI_3_1_PRO_PREVIEW_LOW,
]:
return "gemini-3.1-pro-preview"
- elif model in [Llm.GEMINI_3_PRO_PREVIEW_HIGH, Llm.GEMINI_3_PRO_PREVIEW_LOW]:
- return "gemini-3-pro-preview"
return model.value
diff --git a/frontend/src/lib/models.ts b/frontend/src/lib/models.ts
index e1f199b0..b0b8612a 100644
--- a/frontend/src/lib/models.ts
+++ b/frontend/src/lib/models.ts
@@ -18,8 +18,6 @@ export enum CodeGenerationModel {
GEMINI_3_1_PRO_PREVIEW_HIGH = "gemini-3.1-pro-preview (high thinking)",
GEMINI_3_1_PRO_PREVIEW_MEDIUM = "gemini-3.1-pro-preview (medium thinking)",
GEMINI_3_1_PRO_PREVIEW_LOW = "gemini-3.1-pro-preview (low thinking)",
- GEMINI_3_PRO_PREVIEW_HIGH = "gemini-3-pro-preview (high thinking)",
- GEMINI_3_PRO_PREVIEW_LOW = "gemini-3-pro-preview (low thinking)",
}
// Will generate a static error if a model in the enum above is not in the descriptions
@@ -82,12 +80,4 @@ export const CODE_GENERATION_MODEL_DESCRIPTIONS: {
name: "Gemini 3.1 Pro (low)",
inBeta: true,
},
- "gemini-3-pro-preview (high thinking)": {
- name: "Gemini 3 Pro (high)",
- inBeta: true,
- },
- "gemini-3-pro-preview (low thinking)": {
- name: "Gemini 3 Pro (low)",
- inBeta: true,
- },
};