Skip to content

Commit

Permalink
Move check for response property
Browse files Browse the repository at this point in the history
  • Loading branch information
samjulien committed Nov 25, 2024
1 parent 82474c4 commit d81532f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ def _query_FC(self, inference_data: dict):
inference_data["inference_input_log"] = {"message": repr(message), "tools": tools}

if len(tools) > 0:
for tool in tools:
if "response" in tool["function"]:
del tool["function"]["response"]

api_response = self.client.chat.chat(
messages=message,
model=self.model_name.replace("-FC", ""),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ def convert_to_tool(functions, mapping, model_style):
ModelStyle.Anthropic,
ModelStyle.Google,
ModelStyle.FIREWORK_AI,
ModelStyle.WRITER,
]:
item[
"description"
Expand Down

0 comments on commit d81532f

Please sign in to comment.