Bump health check max_completion_tokens to 16
gpt-5-nano can't produce output with max_completion_tokens=1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2
bot.py
2
bot.py
@@ -146,7 +146,7 @@ class BCSBot(commands.Bot):
|
|||||||
await self.llm._client.chat.completions.create(
|
await self.llm._client.chat.completions.create(
|
||||||
model=self.llm.model,
|
model=self.llm.model,
|
||||||
messages=[{"role": "user", "content": "hi"}],
|
messages=[{"role": "user", "content": "hi"}],
|
||||||
max_completion_tokens=1,
|
max_completion_tokens=16,
|
||||||
)
|
)
|
||||||
logger.info("LLM connectivity check passed.")
|
logger.info("LLM connectivity check passed.")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user