JatsTheAIGen commited on
Commit
44b41ba
·
1 Parent(s): dc8667d

Fix raise statement indentation in exception handler

Browse files
Files changed (1) hide show
  1. src/llm_router.py +2 -2
src/llm_router.py CHANGED
@@ -166,8 +166,8 @@ class LLMRouter:
166
 
167
  except Exception as e:
168
  logger.error(f"Error calling Novita AI API: {e}", exc_info=True)
169
- raise
170
-
171
  def _calculate_safe_max_tokens(self, prompt: str, requested_max_tokens: int) -> int:
172
  """
173
  Calculate safe max_tokens based on input token count and model context window.
 
166
 
167
  except Exception as e:
168
  logger.error(f"Error calling Novita AI API: {e}", exc_info=True)
169
+ raise
170
+
171
  def _calculate_safe_max_tokens(self, prompt: str, requested_max_tokens: int) -> int:
172
  """
173
  Calculate safe max_tokens based on input token count and model context window.