Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions apps/mobile/src/features/models/strings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ export const en = {
botHint: 'The main model chats. Task models do delegated work. Only this Bot changes.',
presetHint: 'Bots already using this preset keep their settings until you apply it again.',
orchestrator: 'Main model',
assignment: 'Assignment default model',
allowed: 'Allowed Assignment models',
allowedHint:
'Models the Orchestrator can pick for delegated work. Change the default before removing it.',
effort: 'Reasoning effort',
providerDefault: 'Provider default',
effortDefault: 'Default',
Expand All @@ -113,20 +109,6 @@ export const en = {
groups: 'Routing Groups',
groupFront: (model: string) => `Next available: ${model}`,
groupCurrent: (model: string) => `Current: ${model}`,
groupNotesHint:
'Tell the Orchestrator when to use each Routing Group. Saved when you leave the field.',
groupNote: (name: string) => `Note for ${name}`,
allowedEfforts: 'Assignment reasoning levels',
allowedEffortsHint:
'Levels the Orchestrator may choose when it starts an Assignment on each allowed model.',
allowedEffortModelHint: (name: string) =>
`Levels the Orchestrator may choose for ${name}. Keep at least one.`,
allowedEffortGroupHint: (name: string) =>
`Levels the Orchestrator may choose for ${name}. Turn all off to allow any shared level.`,
effortsAny: 'Any level',
effortRangeDefault: (level: string) => `default ${level}`,
effortDefaultLevel: 'Default level',
effortLocked: 'Used by the Assignment default',
presets: 'Presets',
presetRoutes: (main: string, side: string) => `Main: ${main} · Assignments: ${side}`,
presetInherited: 'Default',
Expand Down Expand Up @@ -294,9 +276,6 @@ export const zh: typeof en = {
botHint: '主模型负责对话,副模型执行委派任务。只影响此 Bot。',
presetHint: '已使用此预设的 Bot 保持原设置,重新应用后才更新。',
orchestrator: '主模型',
assignment: '默认副模型',
allowed: '可选的副模型',
allowedHint: '主模型可选这些副模型执行委派任务。移除默认副模型前先换一个默认。',
effort: '推理强度',
providerDefault: '服务商默认',
effortDefault: '默认',
Expand All @@ -316,17 +295,6 @@ export const zh: typeof en = {
groups: '路由组',
groupFront: (model: string) => `下一个可用:${model}`,
groupCurrent: (model: string) => `当前:${model}`,
groupNotesHint: '告诉主模型什么时候用这个路由组。离开输入框时保存。',
groupNote: (name: string) => `${name} 的备注`,
allowedEfforts: '副模型推理强度',
allowedEffortsHint: '主模型创建委派任务时,可为每个副模型选择的推理强度。',
allowedEffortModelHint: (name: string) => `主模型给 ${name} 可选的强度,至少保留一个。`,
allowedEffortGroupHint: (name: string) =>
`主模型给 ${name} 可选的强度。全部关闭则可选任意共有强度。`,
effortsAny: '任意强度',
effortRangeDefault: (level: string) => `默认 ${level}`,
effortDefaultLevel: '默认强度',
effortLocked: '默认副模型正在使用',
presets: '预设',
presetRoutes: (main: string, side: string) => `主:${main} · 副:${side}`,
presetInherited: '跟随默认',
Expand Down
196 changes: 0 additions & 196 deletions apps/mobile/src/ui/chat/allowed-efforts.tsx

This file was deleted.

81 changes: 0 additions & 81 deletions apps/mobile/src/ui/chat/group-notes.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions apps/mobile/src/ui/chat/model-picker-row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export function ModelGroupPickerRow({
groups,
usable,
showCount,
note,
...actions
}: RowActions & {
group: ModelCatalogGroup;
Expand All @@ -161,7 +160,6 @@ export function ModelGroupPickerRow({
groups: readonly ModelCatalogGroup[];
usable: boolean;
showCount: boolean;
note?: string | undefined;
}) {
const t = useStrings();
const theme = useDesignTheme();
Expand Down Expand Up @@ -196,7 +194,6 @@ export function ModelGroupPickerRow({
executed === undefined ? current : t.modelSettings.groupCurrent(executed.name),
executed?.external ? t.routingGroup.externalEngine : undefined,
...members,
note,
]
.filter(Boolean)
.join(', ')}
Expand All @@ -221,7 +218,6 @@ export function ModelGroupPickerRow({
: restful === undefined
? frontLabel
: restingLabel(restful),
...(note === undefined ? [] : [note]),
].join(' · ')}
tone={usable ? 'fg' : 'muted'}
/>
Expand Down
9 changes: 0 additions & 9 deletions apps/mobile/src/ui/chat/model-route-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
type ModelCatalogEntry,
type ModelCatalogGroup,
} from '@botharness/host-client/model-catalog';
import type { ModelPlanGroups } from '@botharness/host-client/model-plans';
import type { ModelSettingsState } from '@botharness/host-client/model-settings';
import { t } from '../strings';
import { modelEntryLabel } from './composer-labels';
Expand Down Expand Up @@ -61,14 +60,6 @@ export function groupEffortLabel(
return groupEffortChoices(value, group).find((item) => item.value === effort)?.label ?? effort;
}

export function groupEffortOf(groups: ModelPlanGroups, assignment: boolean): string {
return assignment
? (groups.assignmentGroupOptions?.find(
(option) => option.group === groups.assignmentDefaultGroupId,
)?.defaultEffort ?? '')
: (groups.orchestratorGroupEffort ?? '');
}

export function keptGroupEffort(
value: ModelSettingsState,
group: ModelCatalogGroup,
Expand Down
Loading