abi / abi/screenshot-to-code

Error generating code. Please contact support.

Đang mở
#503 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
78.7k
Fork
9.6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.