chopratejas commited on
Commit
4bead6d
·
1 Parent(s): ad6f44c

Fixing the ruff linting

Browse files
Files changed (1) hide show
  1. headroom/backends/anyllm.py +10 -6
headroom/backends/anyllm.py CHANGED
@@ -349,7 +349,9 @@ class AnyLLMBackend(Backend):
349
  if param in body:
350
  kwargs[param] = body[param]
351
 
352
- logger.debug(f"any-llm OpenAI request: provider={self.provider}, model={original_model}")
 
 
353
 
354
  response: Any = await self.llm.acompletion(**kwargs)
355
 
@@ -377,11 +379,13 @@ class AnyLLMBackend(Backend):
377
  }
378
  for tc in c.message.tool_calls
379
  ]
380
- choices.append({
381
- "index": c.index,
382
- "message": msg,
383
- "finish_reason": c.finish_reason,
384
- })
 
 
385
 
386
  usage = response.usage
387
  response_dict: dict[str, Any] = {
 
349
  if param in body:
350
  kwargs[param] = body[param]
351
 
352
+ logger.debug(
353
+ f"any-llm OpenAI request: provider={self.provider}, model={original_model}"
354
+ )
355
 
356
  response: Any = await self.llm.acompletion(**kwargs)
357
 
 
379
  }
380
  for tc in c.message.tool_calls
381
  ]
382
+ choices.append(
383
+ {
384
+ "index": c.index,
385
+ "message": msg,
386
+ "finish_reason": c.finish_reason,
387
+ }
388
+ )
389
 
390
  usage = response.usage
391
  response_dict: dict[str, Any] = {