Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitamalinov committed Apr 24, 2024
1 parent f9166c7 commit edadfa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/openai/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ def call_functions(run: Run, funcs: dict[str, Any], token: str) -> list[Any]:
result: Any = func(**args)
results.append((tool_call, result))
except KeyError as e:
raise ValueError(f"Function not found: {e}") from e
raise ValueError(f"call_functions Function not found: {e}") from e
except Exception as e:
raise ValueError(f"Error: {e}") from e
raise ValueError(f"call_functions Error: {e}") from e

return results

0 comments on commit edadfa3

Please sign in to comment.