abi / abi/screenshot-to-code

Error generating code. Please contact support.

Aperta
#503 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
78.7k
Fork
9.6k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Describe the bug**
Error generating code. Please contact support.

**To Reproduce**
Steps to reproduce the behavior:
https://github.com/abi/screenshot-to-code/issues/354

**Screenshots of backend AND frontend terminal logs**

Why do I keep getting an error message:

```
Received params
Using openAiApiKey from client-side settings dialog
Using openAiBaseURL from client-side settings dialog
Generating html_tailwind code in image mode
Status (variant 0): Generating code...
Status (variant 1): Generating code...
Error generating code. Please contact support.
Traceback (most recent call last):
File "D:\cursor\githubs\screenshot-to-code\backend\llm.py", line 79, in stream_openai_response
stream = await client.chat.completions.create(**params) # type: ignore
```

1.

![Image](https://github.com/user-attachments/assets/a06a3cbf-6b07-4c5c-b04b-c6006eabee86)

2.

![Image](https://github.com/user-attachments/assets/35def2a4-9a8a-429d-b51d-67fdcb970ab5)

3.

![Image](https://github.com/user-attachments/assets/ac3a1bdd-d5b8-4bde-a123-81073a7abb51)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.