FriendofAI / LM_Chat_TTS_FrontEnd.html

LM_Chat_TTS_FrontEnd is a simple yet powerful interface for interacting with LM Studio models using text-to-speech functionality. This project is designed to be lightweight and user-friendly, making it suitable for a wide range of users interested in exploring voice interactions with AI models.
12 stars 6 forks source link

Submitting through form results in error #2

Closed blindwit closed 3 months ago

blindwit commented 3 months ago

Here are the log entries within the LM service when the issue happens:

[2024-06-28 08:48:00.164] [INFO] [LM STUDIO SERVER] Processing queued request... [2024-06-28 08:48:00.164] [INFO] Received OPTIONS request to /v1/chat/completions with body: {} [2024-06-28 08:48:00.165] [ERROR] 'messages' field is required

It appears that the form is pushing the request to the service; however, it's sending an empty body.

I am running the form through Edge (as suggested) as running through FF results in no AI voice options loading.

blindwit commented 3 months ago

Doing some digging, it turns out that your interaction with the server triggers a CORS violation unless CORS is turned on explicitly on the server. I'll close the issue, but will leave it up so anyone running across the same issue knows the fix: Ensure CORS is turned ON on the lm studio service, or you will return failure.

blindwit commented 3 months ago

Resolved.