zlwaterfield / scramble

Open-Source Grammarly Alternative
MIT License
1.13k stars 44 forks source link

Support any OpenAI-compatible API, including local Ollama #5

Open len-foss opened 1 week ago

len-foss commented 1 week ago

This is a WIP to support other OpenAPI compatible endpoints, including Groq which has a free tier, or more importantly Ollama.

To fully support Ollama, there is one more step: other origins should be configured on the Ollama server.

https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-allow-additional-web-origins-to-access-ollama

This origin should have the form: chrome-extension:// (or moz for Firefox, but it would require another branch to be compatible with it)

Which means that the key should be added to the manifest: this value maintains the unique ID of an extension, or theme when it is loaded during development.

https://developer.chrome.com/docs/extensions/reference/manifest/key

Could you add it?

After that the doc should be extended a bit.

zlwaterfield commented 5 days ago

Thanks for the contribution! I will check it out this week.

zlwaterfield commented 5 days ago

Added current public key to main. Will update for each version.

Text and will finish / merge this tonight.