mirror of
https://github.com/zhayujie/bot-on-anything.git
synced 2026-02-28 08:41:36 +08:00
set default value for open ai model
This commit is contained in:
@@ -18,7 +18,7 @@ class OpenAIModel(Model):
|
||||
openai.api_base = api_base
|
||||
proxy = model_conf(const.OPEN_AI).get('proxy')
|
||||
log.info("[OPEN_AI] api_base={}".format(openai.api_base))
|
||||
self.model = model_conf(const.OPEN_AI).get('model')
|
||||
self.model = model_conf(const.OPEN_AI).get('model', 'text-davinci-003')
|
||||
|
||||
|
||||
def reply(self, query, context=None):
|
||||
|
||||
Reference in New Issue
Block a user