mirror of
https://github.com/kingomarnajjar/ChatDev.git
synced 2026-07-26 06:37:30 +10:00
ChatCompletion
This commit is contained in:
parent
74f94da64a
commit
59965ab0bd
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ class OpenAIModel(ModelBackend):
|
|||
num_max_completion_tokens = num_max_token - num_prompt_tokens
|
||||
self.model_config_dict['max_tokens'] = num_max_completion_tokens
|
||||
print("using model: {}".format(self.model_type.value))
|
||||
response = openai.chat.completions.create(*args, **kwargs,
|
||||
response = openai.ChatCompletion.create(*args, **kwargs,
|
||||
model=self.model_type.value,
|
||||
**self.model_config_dict)
|
||||
cost = prompt_cost(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue