fix: Simplify model path in TetoCog for Vertex AI content generation
This commit is contained in:
parent
04bbc056d2
commit
d17b224975
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user