fix: Simplify model path in TetoCog for Vertex AI content generation

This commit is contained in:
Slipstream 2025-05-28 23:26:16 -06:00
parent 04bbc056d2
commit d17b224975
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -401,7 +401,7 @@ class TetoCog(commands.Cog):
try:
print(f"[TETO DEBUG] Sending to Vertex AI. Model: {self._ai_model}, Tool Config: {vertex_tools is not None}")
response = await self.genai_client.aio.models.generate_content(
model=f"projects/{PROJECT_ID}/locations/{LOCATION}/models/{self._ai_model}", # Full model path
model=f"models/{self._ai_model}", # Use simpler model path
contents=final_contents_for_api,
config=generation_config_with_system, # Pass the updated config
)