omg thank you, I was going crazy.
Using :
if (currentModel === 'gpt-4-vision-preview') {
requestPayload.max_tokens = 4096;
}
fixed my discord bot. I don’t know why, by default it seems to be at 16 tokens, which is kinda ridiculous.