Code Monkey home page Code Monkey logo

Comments (4)

paul-gauthier avatar paul-gauthier commented on July 17, 2024 1

Are you installing from pypi or GitHub? You need to install the latest from github to pick up the --openai-api-base feature. I haven't cut a new release to pypi that includes it.

$ pip install git+https://github.com/paul-gauthier/aider.git
$ aider --help | grep -i base -C1
             [--no-dirty-commits] [--openai-api-key OPENAI_API_KEY]
             [--openai-api-base OPENAI_API_BASE] [--dry-run] [--show-diffs]
             [--map-tokens MAP_TOKENS] [--yes] [-v]
--
                        Specify the OpenAI API key [env var: OPENAI_API_KEY]
  --openai-api-base OPENAI_API_BASE
                        Specify the OpenAI API base endpoint (default:
                        https://api.openai.com/v1) [env var:
                        AIDER_OPENAI_API_BASE]
  --dry-run             Perform a dry run without applying changes (default:

from aider.

lightningRalf avatar lightningRalf commented on July 17, 2024

Okey, so I tried it.
But it seems that I cannot get it to run.

I tried storing these in the config:
openai-api-key: "MYKEYHERE"
openai-api-base: "http://localhost:9090/v1/chat/completions"

(The readme of the other app tells me I have to it in this way) - hope there is a way to get it to this

from aider.

paul-gauthier avatar paul-gauthier commented on July 17, 2024

Don't include /chat/completions in the API base. So your config file should have this entry:

openai-api-base: "http://localhost:9090/v1"

from aider.

paul-gauthier avatar paul-gauthier commented on July 17, 2024

Closing this for now. Please feel free to re-open if the above didn't help with your issue.

from aider.

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.