Skip to content

Build AI methods with your coding agent, then run them anywhere: as an MCP for chatbots, as a webapp for people, or via API for your software.

fix/Makefile target for pyright (#329)

Louis Choquel88b87f898e13
diff --git a/.pipelex/inference/backends/google.toml b/.pipelex/inference/backends/google.toml
index 072b835dd..7fdc6cd64 100644
--- a/.pipelex/inference/backends/google.toml
+++ b/.pipelex/inference/backends/google.toml
@@ -26,37 +26,15 @@ prompting_target = "gemini"
# LANGUAGE MODELS
################################################################################
-# --- Gemini 2.0 Series --------------------------------------------------------
-["gemini-2.0-flash-exp"]
-model_id = "gemini-2.0-flash-exp"
+# --- Gemini 2.0 Series ----------------------------------------
+["gemini-2.0-flash"]
+model_id = "gemini-2.0-flash"
inputs = ["text", "images"]
outputs = ["text", "structured"]
max_prompt_images = 3000
-costs = { input = 0.0, output = 0.0 } # Free tier during experimental phase
-
-# --- Gemini 1.5 Series --------------------------------------------------------
-["gemini-1.5-pro"]
-model_id = "gemini-1.5-pro"
-inputs = ["text", "images"]
-outputs = ["text", "structured"]
-max_prompt_images = 3000
-costs = { input = 1.25, output = 5.0 } # Updated pricing
-
-["gemini-1.5-flash"]
-model_id = "gemini-1.5-flash"
-inputs = ["text", "images"]
-outputs = ["text", "structured"]
-max_prompt_images = 3000
-costs = { input = 0.075, output = 0.30 } # Updated pricing
-
-["gemini-1.5-flash-8b"]
-model_id = "gemini-1.5-flash-8b"
-inputs = ["text", "images"]
-outputs = ["text", "structured"]
-max_prompt_images = 3000
-costs = { input = 0.0375, output = 0.15 } # Updated pricing
+costs = { input = 0.10, output = 0.40 }
-# --- Gemini 2.5 Series (when available) ----------------------------------------
+# --- Gemini 2.5 Series ----------------------------------------
["gemini-2.5-pro"]
model_id = "gemini-2.5-pro"
inputs = ["text", "images"]
@@ -77,4 +55,3 @@ inputs = ["text", "images"]
outputs = ["text", "structured"]
max_prompt_images = 3000
costs = { input = 0.10, output = 0.40 }
-
diff --git a/.pipelex/inference/routing_profiles.toml b/.pipelex/inference/routing_profiles.toml
index 88727fd4f..40138b702 100644
--- a/.pipelex/inference/routing_profiles.toml
+++ b/.pipelex/inference/routing_profiles.toml
@@ -31,7 +31,7 @@ default = "pipelex_inference"
"gpt-*" = "pipelex_inference"
"claude-*" = "pipelex_inference"
"grok-*" = "pipelex_inference"
-"gemini-*" = "google"
+"gemini-*" = "pipelex_inference"
"*-sdxl" = "fal"
"flux-*" = "fal"
"gpt-image-1" = "openai"
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6e4c08ace..a408ddf37 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog
+## [Unreleased]
+
+- Fix Makefile target `pyright`
+
## [v0.11.0] - 2025-10-01
### Highlights
diff --git a/Makefile b/Makefile
index a9c974418..239e2f4f8 100644
--- a/Makefile
+++ b/Makefile
@@ -381,7 +381,7 @@ lint: env
pyright: env
$(call PRINT_TITLE,"Typechecking with pyright")
- @$(VENV_PYRIGHT) . --project pyproject.toml
+ $(VENV_PYRIGHT) --pythonpath $(VENV_PYTHON) --project pyproject.toml
mypy: env
$(call PRINT_TITLE,"Typechecking with mypy")
diff --git a/pipelex/config_template/inference/backends/google.toml b/pipelex/config_template/inference/backends/google.toml
index 072b835dd..7fdc6cd64 100644
--- a/pipelex/config_template/inference/backends/google.toml
+++ b/pipelex/config_template/inference/backends/google.toml
@@ -26,37 +26,15 @@ prompting_target = "gemini"
# LANGUAGE MODELS
################################################################################
-# --- Gemini 2.0 Series --------------------------------------------------------
-["gemini-2.0-flash-exp"]
-model_id = "gemini-2.0-flash-exp"
+# --- Gemini 2.0 Series ----------------------------------------
+["gemini-2.0-flash"]
+model_id = "gemini-2.0-flash"
inputs = ["text", "images"]
outputs = ["text", "structured"]
max_prompt_images = 3000
-costs = { input = 0.0, output = 0.0 } # Free tier during experimental phase
-
-# --- Gemini 1.5 Series --------------------------------------------------------
-["gemini-1.5-pro"]
-model_id = "gemini-1.5-pro"
-inputs = ["text", "images"]
-outputs = ["text", "structured"]
-max_prompt_images = 3000
-costs = { input = 1.25, output = 5.0 } # Updated pricing
-
-["gemini-1.5-flash"]
-model_id = "gemini-1.5-flash"
-inputs = ["text", "images"]
-outputs = ["text", "structured"]
-max_prompt_images = 3000
-costs = { input = 0.075, output = 0.30 } # Updated pricing
-
-["gemini-1.5-flash-8b"]
-model_id = "gemini-1.5-flash-8b"
-inputs = ["text", "images"]
-outputs = ["text", "structured"]
-max_prompt_images = 3000
-costs = { input = 0.0375, output = 0.15 } # Updated pricing
+costs = { input = 0.10, output = 0.40 }
-# --- Gemini 2.5 Series (when available) ----------------------------------------
+# --- Gemini 2.5 Series ----------------------------------------
["gemini-2.5-pro"]
model_id = "gemini-2.5-pro"
inputs = ["text", "images"]
@@ -77,4 +55,3 @@ inputs = ["text", "images"]
outputs = ["text", "structured"]
max_prompt_images = 3000
costs = { input = 0.10, output = 0.40 }
-
diff --git a/pipelex/config_template/inference/routing_profiles.toml b/pipelex/config_template/inference/routing_profiles.toml
index 88727fd4f..40138b702 100644
--- a/pipelex/config_template/inference/routing_profiles.toml
+++ b/pipelex/config_template/inference/routing_profiles.toml
@@ -31,7 +31,7 @@ default = "pipelex_inference"
"gpt-*" = "pipelex_inference"
"claude-*" = "pipelex_inference"
"grok-*" = "pipelex_inference"
-"gemini-*" = "google"
+"gemini-*" = "pipelex_inference"
"*-sdxl" = "fal"
"flux-*" = "fal"
"gpt-image-1" = "openai"