mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
9e9f1cd88e
commit
269fb71713
4 changed files with 32 additions and 19 deletions
|
|
@ -775,7 +775,7 @@ class MMLUEvalEnv(BaseEnv):
|
|||
# Get model completion with retry logic
|
||||
model_response = None
|
||||
finish_reason = None
|
||||
|
||||
|
||||
# Build completion kwargs - only include max_tokens if > 0
|
||||
# (0 means "use model default", so we don't pass the parameter)
|
||||
completion_kwargs = {
|
||||
|
|
@ -786,7 +786,7 @@ class MMLUEvalEnv(BaseEnv):
|
|||
}
|
||||
if self.config.eval_max_tokens > 0:
|
||||
completion_kwargs["max_tokens"] = self.config.eval_max_tokens
|
||||
|
||||
|
||||
for attempt in range(self.config.max_retries):
|
||||
try:
|
||||
completion = await self.server.chat_completion(**completion_kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue