alimamaTech commited on
Commit
d3e61bb
·
verified ·
1 Parent(s): dffdc79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -78,7 +78,7 @@ class SpyAgent(BasicAgent):
78
  base_url=os.getenv('BASE_URL')
79
  )
80
  completion = client.chat.completions.create(
81
- model=os.getenv('MODEL_NAME'),
82
  messages=[
83
  {'role': 'system', 'content': 'You are a helpful assistant.'},
84
  {'role': 'user', 'content': prompt}
@@ -94,5 +94,5 @@ class SpyAgent(BasicAgent):
94
 
95
  if __name__ == '__main__':
96
  name = 'spy'
97
- agent_builder = AgentBuilder(name, agent=SpyAgent(name, model_name='gpt-4o-mini'))
98
  agent_builder.start()
 
78
  base_url=os.getenv('BASE_URL')
79
  )
80
  completion = client.chat.completions.create(
81
+ model=self.model_name,
82
  messages=[
83
  {'role': 'system', 'content': 'You are a helpful assistant.'},
84
  {'role': 'user', 'content': prompt}
 
94
 
95
  if __name__ == '__main__':
96
  name = 'spy'
97
+ agent_builder = AgentBuilder(name, agent=SpyAgent(name, model_name=os.getenv('MODEL_NAME')'))
98
  agent_builder.start()