euler314 commited on
Commit
74b30a1
·
verified ·
1 Parent(s): 95805d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -335,12 +335,6 @@ Here's the complete Manim code:
335
  config = MODEL_CONFIGS.get(model_name, MODEL_CONFIGS["default"])
336
 
337
  # Check if this is a model that requires max_completion_tokens
338
- if config["param_name"] == "max_completion_tokens":
339
- # For models requiring max_completion_tokens (Anthropic models)
340
- st.warning(f"Model {model_name} requires special handling. Switching to gpt-4o.")
341
- model_name = "gpt-4o"
342
- config = MODEL_CONFIGS["gpt-4o"]
343
-
344
  # Prepare common API parameters
345
  messages = [UserMessage(prompt)]
346
 
 
335
  config = MODEL_CONFIGS.get(model_name, MODEL_CONFIGS["default"])
336
 
337
  # Check if this is a model that requires max_completion_tokens
 
 
 
 
 
 
338
  # Prepare common API parameters
339
  messages = [UserMessage(prompt)]
340