From 0b45104da9bb3a299e495640e9c4c4a337cdf13e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 20 Jun 2023 17:14:52 -0700 Subject: [PATCH] added default api_base --- aider/coders/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aider/coders/base.py b/aider/coders/base.py index d00c5483c..9edf78b02 100755 --- a/aider/coders/base.py +++ b/aider/coders/base.py @@ -33,7 +33,9 @@ class Coder: repo_map = None @classmethod - def create(self, main_model, io, openai_api_key, openai_api_base, **kwargs): + def create( + self, main_model, io, openai_api_key, openai_api_base="https://api.openai.com/v1", **kwargs + ): from . import EditBlockCoder, WholeFileCoder openai.api_key = openai_api_key