JatsTheAIGen commited on
Commit
b21bcac
·
1 Parent(s): 5599138

Fix raise statement indentation

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