fix: Correct parameter name in generate_content method for AICodeAgentCog

This commit is contained in:
Slipstream 2025-05-31 15:54:39 -06:00
parent 03dd18ec74
commit b11a974b64
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -646,7 +646,7 @@ class AICodeAgentCog(commands.Cog):
response = await self.genai_client.aio.models.generate_content(
model=f"publishers/google/models/{self._ai_model}",
contents=vertex_contents,
generation_config=generation_config,
config=generation_config, # Corrected parameter name
# No 'tools' or 'tool_config' for inline tool usage
)