Comments (5)
The Ollama docs explicitly specify to supply an API key even though it's unused: https://ollama.com/blog/openai-compatibility
Additionally, I don't think it makes sense to require the base URL when most users are going to want to use OpenAI out of the box. It also wouldn't help anyway since an API key is still required (even if it doesn't get used)
from mealie.
Ah thanks @michael-genson, I very much missed the "# required, but unused" for the Python library
from mealie.
My 2ยข, the OpenAI feature should require OPENAI_BASE_URL
and OPENAI_MODEL
, and throw an error in /admin/site-settings if ^.*openai.*$
is in OPENAI_BASE_URL
and OPENAI_API_KEY
is blank
from mealie.
For anyone looking here for troubleshooting in the future, your env variables for ollama should include:
OPENAI_BASE_URL=http://ollama_url/v1
OPENAI_API_KEY=literallyanything
OPENAI_MODEL=llama3:latest # or whatever model, I'm using phi3:latest
from mealie.
Let us know how performance goes too please @Greirson, once you've used it a bit. Either here or on discord ๐
from mealie.
Related Issues (20)
- [BUG] - Offline shopping list: Offline state not detected HOT 2
- [BUG] - Changing the group of a user, removes all recipes from their account. HOT 3
- [BUG] - Creating Shopping List makes Shopping List page unaccessible HOT 2
- [BUG] - Changes to shopping list items immediately overwritten HOT 4
- [BUG] - Search for Foods does not find chosen ingredient HOT 3
- [BUG] - Uploading an image crashes Mealie instantly HOT 8
- [BUG] - Importing CopyMeThat does not add image to recipe HOT 5
- [BUG] - PermissionError when `/run/secrets` is inaccessible HOT 10
- [BUG] - Ignoring OIDC_CONFIGURATION_URL variable HOT 4
- [BUG] - Importing Recipes Twice Via Migration Creates Duplicate Recipes With Missing Images
- [BUG] - Offline detection of shopping list is broken HOT 2
- [BUG] - JSONDecodeError causes entire Nextcloud Cookbook migration to fail
- [SCRAPER] - 403 response scrapping Cookpad.com recipes
- [SCRAPER] - none of the k-ruoka.fi recipes cannot be scraped
- [BUG] - Users with no groups unable to authenticate via OIDC if `OIDC_ADMIN_GROUP` is populated
- Random dinner option picking recipes from other categories HOT 1
- [BUG] - Warning about `/run/secrets` not existing on startup HOT 2
- [BUG] - SQLite to PostgreSQL FATAL: role "root" does not exist HOT 1
- [SCRAPER] - Serious Eats
- [Task] - Document OpenAI Features
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mealie.