refactor: Remove unnecessary max_tokens parameter in Gpt4CustomVision class

This commit is contained in:
Dag Thomas Olsen
2024-08-08 22:35:28 +02:00
parent 480e95a047
commit c697cac53f
+1 -2
View File
@@ -778,8 +778,7 @@ class Gpt4CustomVision:
response = self.client.chat.completions.create(
model="gpt-4o",
messages=messages,
max_tokens=300
messages=messages
)
if response.choices and response.choices[0].message: