Skip to content

Commit

Permalink
fix bugs and update notebooks (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
TengHu committed Jan 2, 2024
1 parent cb20275 commit ac82231
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 731 deletions.
2 changes: 1 addition & 1 deletion actionweaver/actions/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def __init__(
stop=False,
instance=None,
):
super().__init__(name, decorated_obj, logger, stop)
super().__init__(name, decorated_obj, stop=stop, logger=logger)
self.instance = instance
self.pydantic_cls = pydantic_cls

Expand Down
1 change: 0 additions & 1 deletion actionweaver/llms/azure/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def _invoke_function(
functions,
orch,
action_handler,
logger=logging.getLogger(__name__),
):
"""Invoke the function, update the messages, returns functions argument for the next OpenAI API call or halt the function loop and return the response."""

Expand Down
2 changes: 0 additions & 2 deletions actionweaver/llms/openai/tools/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def _invoke_tool(
tools,
orch,
action_handler: ActionHandlers,
logger=logging.getLogger(__name__),
):
messages += [response_msg]

Expand Down Expand Up @@ -298,7 +297,6 @@ def new_create(
tools,
orch,
action_handler,
logger,
)
if stop:
return resp
Expand Down
Loading

0 comments on commit ac82231

Please sign in to comment.