fix multimodal input bug

This commit is contained in:
wugren
2024-02-17 13:37:03 +08:00
parent 42c4f97a94
commit ed0adbede9
4 changed files with 56 additions and 35 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ class OpenAI_ComputeNode(ComputeNode):
if mode_name == "gpt-4-vision-preview":
response_format = NOT_GIVEN
llm_inner_functions = None
if max_token_size > 4096:
if max_token_size > 4096 or max_token_size < 50:
result_token = 4096
else:
result_token = -1