abi / screenshot-to-code

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Home Page:https://screenshottocode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

why result code is empty

freshgeek opened this issue · comments

why result code is empty

the front websocket result : {"type":"setCode","value":""}

and py :
completion = await stream_openai_response

completion is empty

Hi, we'll need more information to debug this.

  • Can you share your backend logs?
  • Does this happen for one image or all images?

thanks, this is logs file and image demo
messages_20240408_171908.json

01 - 2

I also encountered the same problem as you, I used a proxy address.
If you are using a proxy address, try adding '/v1' after the address, for example: https://www.xxxxx.xxx/v1

@freshgeek I'm looking for logs from the Python backend server to help you fix the problem.

same problem, I used a proxy address too,result code is empty.

@Srpihot logs would be helpful to debug.

I also encountered the same problem as you, I used a proxy address. If you are using a proxy address, try adding '/v1' after the address, for example: https://www.xxxxx.xxx/v1
this is useful for me 。