Skip to content

Commit 98c244e

Browse files
committed
No need in defaults for model as well
The models come and go, it is the client's responsibility to stay updated. P.S. We could ensure that the model is specified, but what's the point? The server returns an error without needing assistance from the library."
1 parent 2cca75a commit 98c244e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

openai/init.moon

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,6 @@ class OpenAI
264264
assert test_messages messages
265265

266266
payload = {
267-
model: "gpt-3.5-turbo"
268-
-- temperature: 1
269267
:messages
270268
}
271269

@@ -282,13 +280,7 @@ class OpenAI
282280
-- opts: additional parameters as described in https://platform.openai.com/docs/api-reference/completions
283281
completion: (prompt, opts) =>
284282
payload = {
285-
model: "text-davinci-003"
286283
:prompt
287-
-- temperature: 1
288-
-- max_tokens: 16
289-
-- top_p: 1
290-
-- frequency_penalty: 0
291-
-- presence_penalty: 0
292284
}
293285

294286
if opts

0 commit comments

Comments
 (0)