Skip to content

Commit 37bd375

Browse files
Merge pull request #195 from FireMMDC/temp-file-pathing
Readding pathing for create.py when being used as module, removing stary character
2 parents 4238247 + fede95f commit 37bd375

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

agents/agent_builder/create.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ def create_assistants():
88
agents_path = "agents"
99
client = get_openai_client()
1010

11+
agents_path = os.path.join(
12+
Path(__file__).absolute().parent, agents_path
13+
)
14+
1115
# Check if the 'agents' folder is empty or doesn't exist
1216
if (
1317
not os.path.exists(agents_path)
@@ -139,6 +143,6 @@ def create_assistants():
139143
# Create the assistant using the uploaded file IDs if files exist
140144
assistant = client.beta.assistants.create(**create_params)
141145
print("***********************************************")
142-
n
146+
143147
if __name__ == '__main__':
144148
create_assistants()

0 commit comments

Comments
 (0)