ai-puppy commited on
Commit
b7e87c1
Β·
1 Parent(s): ef9146c

Revert "update better model"

Browse files

This reverts commit ef9146c58e98cf410e8e45fde4e7f06c4b9c7f13.

Files changed (5) hide show
  1. agent.py +1 -1
  2. app.py +1 -1
  3. app_with_debug.py +1 -1
  4. graph.py +1 -1
  5. graph_streaming.py +2 -2
agent.py CHANGED
@@ -195,7 +195,7 @@ def create_analysis_agent(file_path: str, model=None, virtual_path: str = "/uplo
195
  Compiled CodeAct agent ready for analysis
196
  """
197
  if model is None:
198
- model = init_chat_model("o4-mini-2025-04-16", model_provider="openai")
199
 
200
  # Create our custom sandbox with file injection capability
201
  sandbox = FileInjectedPyodideSandbox(
 
195
  Compiled CodeAct agent ready for analysis
196
  """
197
  if model is None:
198
+ model = init_chat_model("gpt-4.1-2025-04-14", model_provider="openai")
199
 
200
  # Create our custom sandbox with file injection capability
201
  sandbox = FileInjectedPyodideSandbox(
app.py CHANGED
@@ -57,7 +57,7 @@ from graph_streaming import streaming_analyze_file_with_guidance
57
  load_dotenv(find_dotenv())
58
 
59
  # Initialize model for file analysis
60
- codeact_model = init_chat_model("o4-mini-2025-04-16", model_provider="openai")
61
 
62
  # Store uploaded file path globally
63
  uploaded_file_path = None
 
57
  load_dotenv(find_dotenv())
58
 
59
  # Initialize model for file analysis
60
+ codeact_model = init_chat_model("gpt-4.1-2025-04-14", model_provider="openai")
61
 
62
  # Store uploaded file path globally
63
  uploaded_file_path = None
app_with_debug.py CHANGED
@@ -40,7 +40,7 @@ except Exception as e:
40
  # Initialize model with debug info
41
  print("πŸ” DEBUG: Initializing model...")
42
  try:
43
- codeact_model = init_chat_model("o4-mini-2025-04-16", model_provider="openai")
44
  print("βœ… DEBUG: Model initialized successfully")
45
  except Exception as e:
46
  print(f"❌ DEBUG: Model initialization failed: {e}")
 
40
  # Initialize model with debug info
41
  print("πŸ” DEBUG: Initializing model...")
42
  try:
43
+ codeact_model = init_chat_model("gpt-4.1-2025-04-14", model_provider="openai")
44
  print("βœ… DEBUG: Model initialized successfully")
45
  except Exception as e:
46
  print(f"❌ DEBUG: Model initialization failed: {e}")
graph.py CHANGED
@@ -17,7 +17,7 @@ load_dotenv(find_dotenv())
17
 
18
  # Initialize the language model
19
  model = init_chat_model(
20
- model="o4-mini-2025-04-16",
21
  api_key=os.getenv("OPENAI_API_KEY"),
22
  )
23
 
 
17
 
18
  # Initialize the language model
19
  model = init_chat_model(
20
+ model="gpt-4.1-2025-04-14",
21
  api_key=os.getenv("OPENAI_API_KEY"),
22
  )
23
 
graph_streaming.py CHANGED
@@ -17,7 +17,7 @@ load_dotenv(find_dotenv())
17
 
18
  # Initialize the language model
19
  model = init_chat_model(
20
- model="o4-mini-2025-04-16",
21
  api_key=os.getenv("OPENAI_API_KEY"),
22
  )
23
 
@@ -249,7 +249,7 @@ def execute_guided_analysis_streaming(file_path: str, file_examination: FileExam
249
 
250
  # Create analysis agent
251
  try:
252
- model = init_chat_model("o4-mini-2025-04-16", model_provider="openai")
253
  agent = create_analysis_agent(file_path, model)
254
  yield "βœ… Analysis agent initialized successfully\n\n"
255
  except Exception as e:
 
17
 
18
  # Initialize the language model
19
  model = init_chat_model(
20
+ model="gpt-4.1-2025-04-14",
21
  api_key=os.getenv("OPENAI_API_KEY"),
22
  )
23
 
 
249
 
250
  # Create analysis agent
251
  try:
252
+ model = init_chat_model("gpt-4.1-2025-04-14", model_provider="openai")
253
  agent = create_analysis_agent(file_path, model)
254
  yield "βœ… Analysis agent initialized successfully\n\n"
255
  except Exception as e: