File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2498,8 +2498,8 @@ def base_function_calling(
2498
2498
text = completion ["choices" ][0 ]["text" ]
2499
2499
print (text )
2500
2500
if "message" in text :
2501
- # return _convert_completion_to_chat(
2502
- msg_completion_or_chunks = llama .create_completion (
2501
+ return _convert_completion_to_chat (
2502
+ llama .create_completion (
2503
2503
prompt = prompt + "message:\n " ,
2504
2504
temperature = temperature ,
2505
2505
top_p = top_p ,
@@ -2522,7 +2522,8 @@ def base_function_calling(
2522
2522
# grammar=llama_grammar.LlamaGrammar.from_string(
2523
2523
# follow_up_gbnf_tool_grammar, verbose=llama.verbose
2524
2524
# ),
2525
- )
2525
+ ),stream = stream
2526
+ )
2526
2527
2527
2528
# One or more function calls
2528
2529
tool_name = text [len ("functions." ) :].replace (":" , "" )
You can’t perform that action at this time.
0 commit comments