Skip to content

Commit

Permalink
Cleanup - remove conditional use of max_tokens in explain function
Browse files Browse the repository at this point in the history
  • Loading branch information
aybruhm committed Dec 1, 2023
1 parent 9d1a116 commit 521d2e8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/vision_gpt_explain_image/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def explain(
],
}
]
max_tokens = ag.config.max_tokens if ag.config.max_tokens != -1 else None
chat_completion = client.chat.completions.create(
model="gpt-4-vision-preview",
messages=messages,
Expand Down

0 comments on commit 521d2e8

Please sign in to comment.