Spaces:
Sleeping
Sleeping
Update src/agent/linkedin_agent.py
Browse files
src/agent/linkedin_agent.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
import os
|
| 4 |
from openai import OpenAI
|
| 5 |
from agents import Agent
|
| 6 |
-
from agents import
|
| 7 |
from tools.web_search_tool import get_web_search_tool
|
| 8 |
|
| 9 |
# Asegúrate de tener la variable de entorno OPENAI_API_KEY definida en tu sistema
|
|
@@ -23,8 +23,8 @@ def create_agent():
|
|
| 23 |
"""
|
| 24 |
|
| 25 |
# 1) Primero, instanciamos el modelo basado en 04-mini-high:
|
| 26 |
-
model =
|
| 27 |
-
model="
|
| 28 |
openai_client=client
|
| 29 |
)
|
| 30 |
|
|
|
|
| 3 |
import os
|
| 4 |
from openai import OpenAI
|
| 5 |
from agents import Agent
|
| 6 |
+
from agents import OpenAIResponsesModel
|
| 7 |
from tools.web_search_tool import get_web_search_tool
|
| 8 |
|
| 9 |
# Asegúrate de tener la variable de entorno OPENAI_API_KEY definida en tu sistema
|
|
|
|
| 23 |
"""
|
| 24 |
|
| 25 |
# 1) Primero, instanciamos el modelo basado en 04-mini-high:
|
| 26 |
+
model = OpenAIResponsesModel(
|
| 27 |
+
model="gpt-4o-mini",
|
| 28 |
openai_client=client
|
| 29 |
)
|
| 30 |
|