Electrofried / ComfyUI-OpenAINode

This is a simple node for comfyUI that accesses any openAI API server the user specifies and enables simple text generation with a string output.
GNU General Public License v3.0
20 stars 7 forks source link

LM studio api setup as in example but... #2

Open shiloh92 opened 9 months ago

shiloh92 commented 9 months ago

You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.

You can run openai migrate to automatically upgrade your codebase to use the 1.0.0 interface.

Alternatively, you can pin your installation to the old version, e.g. pip install openai==0.28

A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742

MultiTech-Visions commented 2 months ago

Wow half a year ago you had this problem, with not even a word from whoever.

Did you ever get this to work, or abandon the effort?

ytoaa commented 3 weeks ago

The same symptoms are repeated now Is there any way other than changing the library version? also response = openai.chat.completions.create( If you change it to Retrying request to /chat/completions in 0.887858 seconds Retrying request to /chat/completions in 1.702130 seconds Error: Connection error. An error occurs.