alimamaTech
commited on
Update app.py
Browse files
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=
|
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='
|
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()
|