abi / abi/screenshot-to-code

Error generating code. Please contact support.

Offen
#503 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
78.7k
Forks
9.6k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**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)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.