occ-ai / obs-urlsource

OBS plugin to fetch data from a URL or file, connect to an API or AI service, parse responses and display text, image or audio on scene
https://obsproject.com/forum/resources/url-api-source-fetch-live-data-and-display-it-on-screen.1756/
GNU General Public License v2.0
130 stars 18 forks source link

Support Request-"HTTP response code said error" #63

Closed NCIEUC closed 6 months ago

NCIEUC commented 7 months ago

When running the test at approximately 2:02 in https://www.youtube.com/watch?v=Q34LQsx-nlg , I get an error saying HTTP response code said error" and I've double checked my code etc a few times now.

Any thoughts as to obvious fixes?

royshil commented 7 months ago

the OpenAI server is very picky on the headers it accepts please make sure your headers are exactly as they appear in e.g. https://platform.openai.com/docs/api-reference/chat/create the casing of the letters must match! also make sure it's https:// and not http

royshil commented 7 months ago

this can now be handled by #65 using the "no fail on error" option