Yago Bolivar
commited on
Commit
·
a2b205e
1
Parent(s):
d0ebe3d
fix: update log.md with recent changes and add openai.md for OpenAI model integration
Browse files
log.md
CHANGED
@@ -18,4 +18,8 @@
|
|
18 |
- Identified that README.md carries the HF space config
|
19 |
- app.py becomes a mess and we start over using the example from the HF space
|
20 |
- it works! I gad to revamp app.py to add the original code blocks
|
21 |
-
- fixed some trouble at promtps.yaml
|
|
|
|
|
|
|
|
|
|
18 |
- Identified that README.md carries the HF space config
|
19 |
- app.py becomes a mess and we start over using the example from the HF space
|
20 |
- it works! I gad to revamp app.py to add the original code blocks
|
21 |
+
- fixed some jinja % trouble at promtps.yaml
|
22 |
+
- add openai access
|
23 |
+
- new problems at build (maybe new requirements.txt)
|
24 |
+
- roll back to previous version. Add smolagents[openai] to requirements.txt
|
25 |
+
- got 25%. The agent cannot access the files
|
openai.md
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from smolagents import OpenAIServerModel
|
2 |
+
import os
|
3 |
+
|
4 |
+
model = OpenAIServerModel(
|
5 |
+
model_id="gpt-4o",
|
6 |
+
api_base="https://api.openai.com/v1",
|
7 |
+
api_key=os.environ["OPENAI_API_KEY"],
|
8 |
+
)
|