Spaces:
Build error
Build error
Update agent_functions.py
Browse files- agent_functions.py +1 -1
agent_functions.py
CHANGED
|
@@ -60,7 +60,7 @@ def generar_pdf_orden(order_details, filepath='orden_compra.pdf'):
|
|
| 60 |
def obtener_respuesta(pregunta, texto_preprocesado, modelo, temperatura=0.5):
|
| 61 |
try:
|
| 62 |
response = openai.ChatCompletion.create(
|
| 63 |
-
model=
|
| 64 |
messages=[
|
| 65 |
{"role": "system", "content": "Actua como Ana una asesora de ventas del restaurante Sazon Burguer, tienes un tono muy amable y cordial"},
|
| 66 |
{"role": "user", "content": f"{pregunta}\n\nContexto: {texto_preprocesado}"}
|
|
|
|
| 60 |
def obtener_respuesta(pregunta, texto_preprocesado, modelo, temperatura=0.5):
|
| 61 |
try:
|
| 62 |
response = openai.ChatCompletion.create(
|
| 63 |
+
model="gpt-4",
|
| 64 |
messages=[
|
| 65 |
{"role": "system", "content": "Actua como Ana una asesora de ventas del restaurante Sazon Burguer, tienes un tono muy amable y cordial"},
|
| 66 |
{"role": "user", "content": f"{pregunta}\n\nContexto: {texto_preprocesado}"}
|