Spaces:
Sleeping
Sleeping
Update gaia_agent.py
Browse files- gaia_agent.py +6 -6
gaia_agent.py
CHANGED
|
@@ -31,7 +31,7 @@ import chess
|
|
| 31 |
import chess.engine
|
| 32 |
# import tempfile
|
| 33 |
# from PIL import Image
|
| 34 |
-
from langchain.chat_models import
|
| 35 |
|
| 36 |
|
| 37 |
|
|
@@ -61,11 +61,11 @@ api_key = os.getenv("HF_TOKEN")
|
|
| 61 |
# huggingfacehub_api_token=api_key,
|
| 62 |
# timeout=300,
|
| 63 |
# )
|
| 64 |
-
llm =
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
|
| 70 |
# # Initialize local Ollama model
|
| 71 |
# llm Ollama(model="qwen2.5-coder", base_url="http://127.0.0.1:11434")
|
|
|
|
| 31 |
import chess.engine
|
| 32 |
# import tempfile
|
| 33 |
# from PIL import Image
|
| 34 |
+
from langchain.chat_models.openai import OpenAIChat
|
| 35 |
|
| 36 |
|
| 37 |
|
|
|
|
| 61 |
# huggingfacehub_api_token=api_key,
|
| 62 |
# timeout=300,
|
| 63 |
# )
|
| 64 |
+
llm = OpenAIChat(
|
| 65 |
+
model_name="gpt-4o-mini",
|
| 66 |
+
temperature=0.2,
|
| 67 |
+
openai_api_key=OpenAI_key
|
| 68 |
+
)
|
| 69 |
|
| 70 |
# # Initialize local Ollama model
|
| 71 |
# llm Ollama(model="qwen2.5-coder", base_url="http://127.0.0.1:11434")
|