NON906 / sd-webui-chatgpt

This is a repository for conversations using OpenAI API (compatible with ChatGPT) or llama.cpp in Stable Diffusion web UI.
MIT License
39 stars 7 forks source link

Exception in thread Thread-58 #12

Closed thejohnd0e closed 3 months ago

thejohnd0e commented 3 months ago

Screenshot - 2024-03-28 09 23 57

NON906 commented 3 months ago

I pushed ce8cce48236d5e6f4fd70787ff654948a6832a70. If the version of openai is different, it will be reinstalled. Please check if this works correctly.

thejohnd0e commented 3 months ago

I pushed ce8cce4. If the version of openai is different, it will be reinstalled. Please check if this works correctly.

Screenshot - 2024-04-03 00 42 58

NON906 commented 3 months ago

I fixed with 203cfed8904259c630b4195225adcee3c5516155. Please try it.

thejohnd0e commented 3 months ago

I fixed with 203cfed. Please try it.

Unfortunately, this still doesn't work for me.

Screenshot - 2024-04-03 10 59 43

NON906 commented 3 months ago

What will happen if you change the relevant part as below?

(D:\stable-diffusion-main\extensions\sd-webui-chatgpt\scripts\main.py Line: 547)

                fn=lambda t, c: ['', c + [(t, None)]], 

to

                fn=lambda t, c: ['', c + [(t, None)] if c is not None else [(t, None)]],
thejohnd0e commented 3 months ago

Now works great, ty!

NON906 commented 3 months ago

Thank you for checking. I reflect it (eac8d21ea35cefe01856147d824a9aad95df8aa8) and closed this issue.