Coder Social home page Coder Social logo

Comments (5)

michael-genson avatar michael-genson commented on July 25, 2024 1

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.

Greirson avatar Greirson commented on July 25, 2024 1

Ah thanks @michael-genson, I very much missed the "# required, but unused" for the Python library

from mealie.

Greirson avatar Greirson commented on July 25, 2024

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.

Greirson avatar Greirson commented on July 25, 2024

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.

boc-the-git avatar boc-the-git commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.