Skip to content

Commit

Permalink
Merge pull request #154 from Elektra58/patch-8
Browse files Browse the repository at this point in the history
fixed unnecessary close statement in file context handler
  • Loading branch information
bonk1t authored Nov 13, 2024
2 parents 3de9f27 + b50bc4d commit c9f39eb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions agency_swarm/agents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ def get_id_from_file(f_path):
file_id = self.client.with_options(
timeout=80 * 1000,
).files.create(file=f, purpose="assistants").id
f.close()
add_id_to_file(f_path, file_id)

if file_ext in code_interpreter_file_extensions:
Expand Down Expand Up @@ -464,7 +463,6 @@ def _parse_schemas(self):
for f_path in f_paths:
with open(f_path, 'r') as f:
openapi_spec = f.read()
f.close()
try:
validate_openapi_spec(openapi_spec)
except Exception as e:
Expand Down

0 comments on commit c9f39eb

Please sign in to comment.