M1kep / ComfyUI-KepOpenAI

27 stars 8 forks source link

Doesn't seem to work anymore; should prefer GPT-4o #5

Open alexandergunnarson opened 3 months ago

alexandergunnarson commented 3 months ago
Error occurred when executing KepOpenAI_ImageWithPrompt:  Error code: 404 - {'error': {'message': 'The model `gpt-4-vision-preview` has been deprecated, learn more here: https://platform.openai.com/docs/deprecations', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}  File "/src/ComfyUI/execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "/src/ComfyUI/execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "/src/ComfyUI/execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "/src/ComfyUI/custom_nodes/ComfyUI-KepOpenAI/nodes.py", line 40, in generate_completion response = self.open_ai_client.chat.completions.create( File "/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/openai/_utils/_utils.py", line 277, in wrapper return func(*args, **kwargs) File "/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/openai/resources/chat/completions.py", line 646, in create return self._post( File "/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/openai/_base_client.py", line 1266, in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) File "/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/openai/_base_client.py", line 942, in request return self._request( File "/root/.pyenv/versions/3.10.14/lib/python3.10/site-packages/openai/_base_client.py", line 1046, in _request raise self._make_status_error_from_response(err.response) from None