Skip to content

Commit

Permalink
Postprocess in clean_tool_call instead
Browse files Browse the repository at this point in the history
  • Loading branch information
boswelja committed Nov 19, 2024
1 parent ef17ca7 commit c1c209d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/generation/functions/pipelines/meta_llama/prompts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ You have access to the following functions:
{tools}
If you choose to call a function ONLY reply in the following format with no prefix or suffix:
<function=example_function_name>{{"example_name": "example_value"}}</function>
<function=example_function_name>{{\"example_name\": \"example_value\"}}</function>
Reminder:
- Function calls MUST follow the specified format, start with <function= and end with </function>
Expand Down
1 change: 1 addition & 0 deletions src/generation/functions/pipelines/meta_llama/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ impl LlamaFunctionCall {
.to_string()
.replace("{{", "{")
.replace("}}", "}")
.replace("\\\"", "\"")
}

fn parse_tool_response(&self, response: &str) -> Vec<LlamaFunctionCallSignature> {
Expand Down

0 comments on commit c1c209d

Please sign in to comment.