przeprogramowani / cursor-ollama-backend

Ollama proxy for Cursor editor
https://opanuj.ai
3 stars 0 forks source link

question about curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) #1

Open yfzhou3993 opened 1 day ago

yfzhou3993 commented 1 day ago

First of all, thank you very much for this repo!

I followed the README to generate a SSL self-signed certificate. But when I tried to varify the url base in the cursor, I encountered the following error

curl https://localhost/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer " -d "{ \"messages\": [ { \"role\": \"system\", \"content\": \"You are a test assistant.\" }, { \"role\": \"user\", \"content\": \"Testing. Just say hi and nothing else.\" } ], \"model\": \"llama" }"

curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012)

I think this is due to the different SSL libraries of curl. What operating system and curl version are you using?

Thanks again!

psmyrdek commented 14 hours ago

Hi, I'm on macOS Sequoia (15.0.1) and curl:

curl 8.7.1 (x86_64-apple-darwin24.0) libcurl/8.7.1

Being honest with you, it seems like one of recent updates to Cursor made it more challenging to work with local models via localhost proxy. The screenshot that I attached in README proves that it was working some time ago, but I couldn't manage to set it up after the latest update.

If you figure something out here, lmk - would be super nice to see what we can do about it.