medium thinking level

This commit is contained in:
Matteo Rosati
2026-01-29 10:23:23 +01:00
parent 7c2318c655
commit 111e47cb77

View File

@@ -9,7 +9,8 @@ tools = [
types.Tool(
retrieval=types.Retrieval(
vertex_rag_store=types.VertexRagStore(
rag_resources=[types.VertexRagStoreRagResource(rag_corpus=CORPUS)],
rag_resources=[
types.VertexRagStoreRagResource(rag_corpus=CORPUS)],
)
)
)
@@ -20,17 +21,19 @@ generate_content_config = types.GenerateContentConfig(
top_p=0.95,
max_output_tokens=65535,
safety_settings=[
types.SafetySetting(category="HARM_CATEGORY_HATE_SPEECH", threshold="OFF"),
types.SafetySetting(
category="HARM_CATEGORY_HATE_SPEECH", threshold="OFF"),
types.SafetySetting(
category="HARM_CATEGORY_DANGEROUS_CONTENT", threshold="OFF"
),
types.SafetySetting(
category="HARM_CATEGORY_SEXUALLY_EXPLICIT", threshold="OFF"
),
types.SafetySetting(category="HARM_CATEGORY_HARASSMENT", threshold="OFF"),
types.SafetySetting(
category="HARM_CATEGORY_HARASSMENT", threshold="OFF"),
],
tools=tools,
thinking_config=types.ThinkingConfig(
thinking_level="HIGH",
thinking_level="MEDIUM",
),
)