USTC975 commited on
Commit
4cd95c5
·
1 Parent(s): a06e98d
Files changed (3) hide show
  1. agentreview/backends/openai.py +0 -1
  2. app.py +2 -3
  3. data +0 -1
agentreview/backends/openai.py CHANGED
@@ -64,7 +64,6 @@ class OpenAIChat(IntelligenceBackend):
64
  def _get_response(self, messages):
65
  # Refer to https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints for how to
66
  # make API calls
67
- return 'hello' # FIXME: remove this line
68
 
69
  if self.client_type == "openai":
70
  completion = self.client.chat.completions.create(
 
64
  def _get_response(self, messages):
65
  # Refer to https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints for how to
66
  # make API calls
 
67
 
68
  if self.client_type == "openai":
69
  completion = self.client.chat.completions.create(
app.py CHANGED
@@ -367,6 +367,8 @@ Using Multi-Agent to review your paper!.
367
  paper_decision = "Accept"
368
  data_dir = ''
369
  paper_id = "12345"
 
 
370
  args = Namespace(openai_client_type="openai",
371
  experiment_name="test",
372
  max_num_words=16384)
@@ -484,7 +486,6 @@ Using Multi-Agent to review your paper!.
484
 
485
  return arena
486
 
487
-
488
  def step_game(all_comps: dict):
489
  global CURRENT_STEP_INDEX
490
 
@@ -503,7 +504,6 @@ Using Multi-Agent to review your paper!.
503
  else:
504
  arena = cur_state["arena"]
505
 
506
- # 当timestep.terminal 为真时才停止运行
507
  # TODO: 连续运行
508
 
509
  timestep = arena.step()
@@ -594,7 +594,6 @@ Using Multi-Agent to review your paper!.
594
  ):
595
  comp.change(_disable_step_button, state, btn_step)
596
 
597
-
598
  # print(set(all_components + [state]))
599
  btn_step.click(
600
  step_game,
 
367
  paper_decision = "Accept"
368
  data_dir = ''
369
  paper_id = "12345"
370
+
371
+ # Notion: 此处设置参数,experiment_name为无效填充参数
372
  args = Namespace(openai_client_type="openai",
373
  experiment_name="test",
374
  max_num_words=16384)
 
486
 
487
  return arena
488
 
 
489
  def step_game(all_comps: dict):
490
  global CURRENT_STEP_INDEX
491
 
 
504
  else:
505
  arena = cur_state["arena"]
506
 
 
507
  # TODO: 连续运行
508
 
509
  timestep = arena.step()
 
594
  ):
595
  comp.change(_disable_step_button, state, btn_step)
596
 
 
597
  # print(set(all_components + [state]))
598
  btn_step.click(
599
  step_game,
data DELETED
@@ -1 +0,0 @@
1
- ../agent4reviews/data