mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
added default api_base
This commit is contained in:
parent
c379cf3286
commit
0b45104da9
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue