Skip to content

Commit 1e4e23c

Browse files
authored
Remove Giga Potato (#1384)
2 parents a5cdc7e + 04a59f2 commit 1e4e23c

5 files changed

Lines changed: 3 additions & 87 deletions

File tree

src/lib/forbidden-free-models.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
/**
2-
* Models that are so heavily rate-limited by their providers that they are
3-
* effectively unusable. We hide them from the model list and reject requests
4-
* for them at the proxy layer so users get a clear error instead of endless
5-
* 429s.
6-
*/
7-
81
const forbiddenFreeModelIds: ReadonlySet<string> = new Set([
92
'arcee-ai/trinity-mini:free',
103
'cognitivecomputations/dolphin-mistral-24b-venice-edition:free',
114
'deepseek/deepseek-r1-0528:free',
5+
'giga-potato',
6+
'giga-potato-thinking',
127
'google/gemma-3-12b-it:free',
138
'google/gemma-3-27b-it:free',
149
'google/gemma-3-4b-it:free',

src/lib/models.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
CLAUDE_SONNET_CURRENT_MODEL_ID,
1616
} from '@/lib/providers/anthropic';
1717
import { corethink_free_model } from '@/lib/providers/corethink';
18-
import { giga_potato_model, giga_potato_thinking_model } from '@/lib/providers/gigapotato';
1918
import type { KiloFreeModel } from '@/lib/providers/kilo-free-model';
2019
import { minimax_m21_free_model, minimax_m25_free_model } from '@/lib/providers/minimax';
2120
import { kimi_k25_free_model } from '@/lib/providers/moonshotai';
@@ -33,7 +32,6 @@ export const preferredModels = [
3332
KILO_AUTO_FREE_MODEL.id,
3433
mimo_v2_pro_free_model.status === 'public' ? mimo_v2_pro_free_model.public_id : null,
3534
'nvidia/nemotron-3-super-120b-a12b:free',
36-
giga_potato_thinking_model.status === 'public' ? giga_potato_thinking_model.public_id : null,
3735
'arcee-ai/trinity-large-preview:free',
3836
CLAUDE_OPUS_CURRENT_MODEL_ID,
3937
CLAUDE_SONNET_CURRENT_MODEL_ID,
@@ -79,8 +77,6 @@ export const kiloFreeModels = [
7977
// Instead, set status to 'disabled' first
8078
// and only remove when very few users are requesting it.
8179
corethink_free_model,
82-
giga_potato_model,
83-
giga_potato_thinking_model,
8480
kimi_k25_free_model,
8581
minimax_m25_free_model,
8682
minimax_m21_free_model,

src/lib/providers/gigapotato.ts

Lines changed: 0 additions & 64 deletions
This file was deleted.

src/lib/providers/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
isAnthropicModel,
2323
isHaikuModel,
2424
} from '@/lib/providers/anthropic';
25-
import { applyGigaPotatoProviderSettings } from '@/lib/providers/gigapotato';
2625
import {
2726
getBYOKforOrganization,
2827
getBYOKforUser,
@@ -329,10 +328,6 @@ export function applyProviderSpecificLogic(
329328
applyAlibabaProviderSettings(requestToMutate);
330329
}
331330

332-
if (provider.id === 'gigapotato') {
333-
applyGigaPotatoProviderSettings(requestedModel, requestToMutate);
334-
}
335-
336331
if (provider.id === 'corethink') {
337332
applyCoreThinkProviderSettings(requestToMutate);
338333
}

src/lib/providers/model-settings.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { giga_potato_model, giga_potato_thinking_model } from '@/lib/providers/gigapotato';
21
import { isGemini3Model, isGeminiModel } from '@/lib/providers/google';
32
import { isMinimaxModel } from '@/lib/providers/minimax';
43
import { isMoonshotModel } from '@/lib/providers/moonshotai';
@@ -24,12 +23,7 @@ export function getModelSettings(model: string): ModelSettings | undefined {
2423
}
2524

2625
export function getVersionedModelSettings(model: string): VersionedSettings | undefined {
27-
if (
28-
isGeminiModel(model) ||
29-
isZaiModel(model) ||
30-
model === giga_potato_model.public_id ||
31-
model === giga_potato_thinking_model.public_id
32-
) {
26+
if (isGeminiModel(model) || isZaiModel(model)) {
3327
return {
3428
'4.146.0': {
3529
included_tools: ['write_file', 'edit_file'],

0 commit comments

Comments
 (0)