update Gemini API : use thinking levels

This commit is contained in:
sebastien committed 2026-10-10 08:47:39 +02:00
1 parent 7bc588e9a1
commit ec6ac9580b
9 files changed
+161 -21

No files matched your search

+2 -2
View File
@@ -15,6 +15,7 @@ from google.genai import types
from pydantic import BaseModel, Field
from copienator import configuration as config
from copienator.gemini_config import thinking_config
from copienator import (
CliError,
EvaluationWorkspace,
@@ -277,8 +278,7 @@ def generate_request(
retry_options=types.HttpRetryOptions(attempts=1),
),
automatic_function_calling=types.AutomaticFunctionCallingConfig(disable=True),
temperature=1.0,
top_p=0.95,
thinking_config=thinking_config(config.THINKING_LEVEL_FOR_LABEL),
seed=seed,
max_output_tokens=65535,
response_mime_type= "application/json",