mirror of
https://github.com/microsoft/autogen.git
synced 2025-09-06 14:57:27 +00:00
fix: replace gpt-35-turbo in model name to gpt-3.5-turbo so the name … (#138)
* fix: replace gpt-35-turbo in model name to gpt-3.5-turbo so the name string is in the current chat_model list * ref: reformatted with black --------- Co-authored-by: Chi Wang <wang.chi@microsoft.com> Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
This commit is contained in:
parent
71ac774cd0
commit
fbe82da208
@ -194,7 +194,8 @@ class Completion(openai_Completion):
|
|||||||
return response
|
return response
|
||||||
openai_completion = (
|
openai_completion = (
|
||||||
openai.ChatCompletion
|
openai.ChatCompletion
|
||||||
if config["model"] in cls.chat_models or issubclass(cls, ChatCompletion)
|
if config["model"].replace("gpt-35-turbo", "gpt-3.5-turbo") in cls.chat_models
|
||||||
|
or issubclass(cls, ChatCompletion)
|
||||||
else openai.Completion
|
else openai.Completion
|
||||||
)
|
)
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user