Fix loading fireworks model to/from preset
| @@ -276,6 +276,7 @@ export const settingsToUpdate = { | ||
| 276 | 276 | xai_model: ['#model_xai_select', 'xai_model', false, true], |
| 277 | 277 | pollinations_model: ['#model_pollinations_select', 'pollinations_model', false, true], |
| 278 | 278 | moonshot_model: ['#model_moonshot_select', 'moonshot_model', false, true], |
| 279 | + fireworks_model: ['#model_fireworks_select', 'fireworks_model', false, true], | |
| 279 | 280 | custom_model: ['#custom_model_id', 'custom_model', false, true], |
| 280 | 281 | custom_url: ['#custom_api_url_text', 'custom_url', false, true], |
| 281 | 282 | custom_include_body: ['#custom_include_body', 'custom_include_body', false, true], |
| @@ -372,6 +373,7 @@ const default_settings = { | ||
| 372 | 373 | xai_model: 'grok-3-beta', |
| 373 | 374 | pollinations_model: 'openai', |
| 374 | 375 | moonshot_model: 'kimi-latest', |
| 376 | + fireworks_model: 'accounts/fireworks/models/kimi-k2-instruct', | |
| 375 | 377 | custom_model: '', |
| 376 | 378 | custom_url: '', |
| 377 | 379 | custom_include_body: '', |
| @@ -3405,6 +3407,7 @@ function loadOpenAISettings(data, settings) { | ||
| 3405 | 3407 | oai_settings.xai_model = settings.xai_model ?? default_settings.xai_model; |
| 3406 | 3408 | oai_settings.pollinations_model = settings.pollinations_model ?? default_settings.pollinations_model; |
| 3407 | 3409 | oai_settings.moonshot_model = settings.moonshot_model ?? default_settings.moonshot_model; |
| 3410 | + oai_settings.fireworks_model = settings.fireworks_model ?? default_settings.fireworks_model; | |
| 3408 | 3411 | oai_settings.custom_model = settings.custom_model ?? default_settings.custom_model; |
| 3409 | 3412 | oai_settings.custom_url = settings.custom_url ?? default_settings.custom_url; |
| 3410 | 3413 | oai_settings.custom_include_body = settings.custom_include_body ?? default_settings.custom_include_body; |
| @@ -3777,6 +3780,7 @@ async function saveOpenAIPreset(name, settings, triggerUi = true) { | ||
| 3777 | 3780 | pollinations_model: settings.pollinations_model, |
| 3778 | 3781 | aimlapi_model: settings.aimlapi_model, |
| 3779 | 3782 | moonshot_model: settings.moonshot_model, |
| 3783 | + fireworks_model: settings.fireworks_model, | |
| 3780 | 3784 | custom_model: settings.custom_model, |
| 3781 | 3785 | custom_url: settings.custom_url, |
| 3782 | 3786 | custom_include_body: settings.custom_include_body, |