Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,11 +55,11 @@ def chat(prompt, tools, voice_choice):
|
|
| 55 |
|
| 56 |
if tools == "Yes":
|
| 57 |
if (last_id != None):
|
| 58 |
-
response = client.responses.create
|
| 59 |
instructions = 'You are a drug design assistant. Use tools provided for information; do not insert \
|
| 60 |
your own knowledge if the information can be obtained from a tool. When calling a tool give complete \
|
| 61 |
sentences for the task parameter. For example, do not define the task as "fetch smiles", rather, say: \
|
| 62 |
-
"find the smiles string for the molecule".'
|
| 63 |
model = "o4-mini",
|
| 64 |
tools = cafchem_tools,
|
| 65 |
input=prompt,
|
|
@@ -67,6 +67,10 @@ def chat(prompt, tools, voice_choice):
|
|
| 67 |
)
|
| 68 |
else:
|
| 69 |
response = client.responses.create(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
model = "o4-mini",
|
| 71 |
tools = cafchem_tools,
|
| 72 |
input=prompt
|
|
|
|
| 55 |
|
| 56 |
if tools == "Yes":
|
| 57 |
if (last_id != None):
|
| 58 |
+
response = client.responses.create(
|
| 59 |
instructions = 'You are a drug design assistant. Use tools provided for information; do not insert \
|
| 60 |
your own knowledge if the information can be obtained from a tool. When calling a tool give complete \
|
| 61 |
sentences for the task parameter. For example, do not define the task as "fetch smiles", rather, say: \
|
| 62 |
+
"find the smiles string for the molecule".',
|
| 63 |
model = "o4-mini",
|
| 64 |
tools = cafchem_tools,
|
| 65 |
input=prompt,
|
|
|
|
| 67 |
)
|
| 68 |
else:
|
| 69 |
response = client.responses.create(
|
| 70 |
+
instructions = 'You are a drug design assistant. Use tools provided for information; do not insert \
|
| 71 |
+
your own knowledge if the information can be obtained from a tool. When calling a tool give complete \
|
| 72 |
+
sentences for the task parameter. For example, do not define the task as "fetch smiles", rather, say: \
|
| 73 |
+
"find the smiles string for the molecule".',
|
| 74 |
model = "o4-mini",
|
| 75 |
tools = cafchem_tools,
|
| 76 |
input=prompt
|