Commit 29addac 1 parent d4aee09 commit 29addac Copy full SHA for 29addac
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 18
18
19
19
20
20
console = Console ()
21
- version = "0.5.0 "
21
+ version = "0.5.1 "
22
22
_session_file_ = ".messages.json"
23
23
24
24
available_parameters = {}
@@ -249,9 +249,10 @@ def main():
249
249
250
250
#print(openai_response["function_call"]["arguments"].strip())
251
251
function_args = json .loads (openai_response ["function_call" ]["arguments" ].strip ())
252
+ #print("Function arguments")
253
+ #print(function_args)
252
254
function_response = fuction_to_call (
253
- heading = function_args .get ("heading" ),
254
- content = function_args .get ("content" ).strip (),
255
+ ** function_args
255
256
)
256
257
messages .append (openai_response )
257
258
messages .append ({"role" : "function" , "name" : function_name , "content" : function_response })
You can’t perform that action at this time.
0 commit comments