Remove tools from grok-vision requests
| @@ -2164,6 +2164,10 @@ async function sendOpenAIRequest(type, messages, signal) { | |||
| 2164 | delete generate_data.presence_penalty; | 2164 | delete generate_data.presence_penalty; |
| 2165 | delete generate_data.frequency_penalty; | 2165 | delete generate_data.frequency_penalty; |
| 2166 | } | 2166 | } |
| 2167 | if (generate_data.model.includes('grok-vision')) { | ||
| 2168 | delete generate_data.tools; | ||
| 2169 | delete generate_data.tool_choice; | ||
| 2170 | } | ||
| 2167 | } | 2171 | } |
| 2168 | 2172 | ||
| 2169 | if ((isOAI || isOpenRouter || isMistral || isCustom || isCohere || isNano || isXAI) && oai_settings.seed >= 0) { | 2173 | if ((isOAI || isOpenRouter || isMistral || isCustom || isCohere || isNano || isXAI) && oai_settings.seed >= 0) { |
| @@ -4617,7 +4621,7 @@ async function onModelChange() { | |||
| 4617 | $('#openai_max_context').attr('max', unlocked_max); | 4621 | $('#openai_max_context').attr('max', unlocked_max); |
| 4618 | } else if (oai_settings.xai_model.includes('grok-2-vision')) { | 4622 | } else if (oai_settings.xai_model.includes('grok-2-vision')) { |
| 4619 | $('#openai_max_context').attr('max', max_32k); | 4623 | $('#openai_max_context').attr('max', max_32k); |
| 4620 | } else if (oai_settings.xai_model.includes('grok-vision')) { | 4624 | } else if (oai_settings.xai_model.includes('grok-vision')) { |
| 4621 | $('#openai_max_context').attr('max', max_8k); | 4625 | $('#openai_max_context').attr('max', max_8k); |
| 4622 | } else { | 4626 | } else { |
| 4623 | $('#openai_max_context').attr('max', max_128k); | 4627 | $('#openai_max_context').attr('max', max_128k); |