Skip to content

Commit 6db2518

Browse files
authored
CLI: Fix missing max_tokens arg of chat_completions.create (#317)
1 parent 931b4d2 commit 6db2518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openai/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def create(cls, args):
126126
messages=messages,
127127
# Optional
128128
n=args.n,
129-
max_tokens=100,
129+
max_tokens=args.max_tokens,
130130
temperature=args.temperature,
131131
top_p=args.top_p,
132132
stop=args.stop,

0 commit comments

Comments
 (0)