@@ -111,43 +111,43 @@ def test_prompt_with_instruct_and_context(git_repo, temp_files): # pylint: disa
111111 assert get_content (result .output ).find ("hot summer\n " ) >= 0
112112
113113
114- def test_prompt_with_functions (git_repo , functions_file ): # pylint: disable=W0613
115- # call with -f option
116- result = runner .invoke (main , ['prompt' , '-m' , 'gpt-3.5-turbo' , '-f' , functions_file ,
117- "What is the weather like in Boston?" ])
118- if result .exit_code :
119- print (result .output )
120- assert result .exit_code == 0
121- content = get_content (result .output )
122- assert 'finish_reason: function_call' in content
123- assert '```command' in content
124- assert '"name": "get_current_weather"' in content
125-
126- # compare with no -f options
127- result = runner .invoke (main , ['prompt' , '-m' , 'gpt-3.5-turbo' ,
128- 'What is the weather like in Boston?' ])
129-
130- content = get_content (result .output )
131- assert result .exit_code == 0
132- assert 'finish_reason: stop' not in content
133- assert 'command' not in content
134-
135-
136- def test_prompt_log_with_functions (git_repo , functions_file ): # pylint: disable=W0613
137- # call with -f option
138- result = runner .invoke (main , ['prompt' , '-m' , 'gpt-3.5-turbo' , '-f' , functions_file ,
139- 'What is the weather like in Boston?' ])
140- if result .exit_code :
141- print (result .output )
142- assert result .exit_code == 0
143- prompt_hash = get_prompt_hash (result .output )
144- result = runner .invoke (main , ['log' , '-t' , prompt_hash ])
145-
146- result_json = json .loads (result .output )
147- assert result .exit_code == 0
148- assert result_json [0 ]['request' ] == 'What is the weather like in Boston?'
149- assert '```command' in result_json [0 ]['responses' ][0 ]
150- assert 'get_current_weather' in result_json [0 ]['responses' ][0 ]
114+ # def test_prompt_with_functions(git_repo, functions_file): # pylint: disable=W0613
115+ # # call with -f option
116+ # result = runner.invoke(main, ['prompt', '-m', 'gpt-3.5-turbo', '-f', functions_file,
117+ # "What is the weather like in Boston?"])
118+ # if result.exit_code:
119+ # print(result.output)
120+ # assert result.exit_code == 0
121+ # content = get_content(result.output)
122+ # assert 'finish_reason: function_call' in content
123+ # assert '```command' in content
124+ # assert '"name": "get_current_weather"' in content
125+
126+ # # compare with no -f options
127+ # result = runner.invoke(main, ['prompt', '-m', 'gpt-3.5-turbo',
128+ # 'What is the weather like in Boston?'])
129+
130+ # content = get_content(result.output)
131+ # assert result.exit_code == 0
132+ # assert 'finish_reason: stop' not in content
133+ # assert 'command' not in content
134+
135+
136+ # def test_prompt_log_with_functions(git_repo, functions_file): # pylint: disable=W0613
137+ # # call with -f option
138+ # result = runner.invoke(main, ['prompt', '-m', 'gpt-3.5-turbo', '-f', functions_file,
139+ # 'What is the weather like in Boston?'])
140+ # if result.exit_code:
141+ # print(result.output)
142+ # assert result.exit_code == 0
143+ # prompt_hash = get_prompt_hash(result.output)
144+ # result = runner.invoke(main, ['log', '-t', prompt_hash])
145+
146+ # result_json = json.loads(result.output)
147+ # assert result.exit_code == 0
148+ # assert result_json[0]['request'] == 'What is the weather like in Boston?'
149+ # assert '```command' in result_json[0]['responses'][0]
150+ # assert 'get_current_weather' in result_json[0]['responses'][0]
151151
152152
153153def test_prompt_log_compatibility ():
0 commit comments