| 2599 | 2599 | } |
| 2600 | 2600 | |
| 2601 | 2601 | // Remove logit bias/logprobs/stop-strings if not supported by the model |
| 2602 | 2602 | const isVision = (m) => ['gpt', 'vision'].every(x => typeof m === 'string' && m.includes(x)); |
| 2603 | 2603 | if (gptSources.includes(settings.chat_completion_source) && isVision(model)) { |
| 2604 | 2604 | delete generate_data.logit_bias; |
| 2605 | 2605 | delete generate_data.stop; |
| 2606 | 2606 | delete generate_data.logprobs; |
| 2607 | 2607 | } |
| 2608 | 2608 | if (gptSources.includes(settings.chat_completion_source) && model.includes('/gpt-4.5'/.test(model)) { |
| 2609 | 2609 | delete generate_data.logprobs; |
| 2610 | 2610 | } |
| 2611 | 2611 | |