abi / abi/screenshot-to-code

Error generating code. Please contact support.

Abierto
#503 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
78.7k
Forks
9.6k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.