chore(integration): snapshot local main worktree
This commit is contained in:
@@ -6,7 +6,10 @@ export interface ImportedPiModelProfile {
|
||||
reasoning: boolean;
|
||||
thinkingLevelMap?: Partial<Record<ImportedThinkingLevel, string | null>>;
|
||||
compat?: {
|
||||
thinkingFormat?: 'deepseek' | 'openrouter';
|
||||
thinkingFormat?: 'deepseek' | 'openrouter' | 'qwen';
|
||||
supportsDeveloperRole?: boolean;
|
||||
supportsReasoningEffort?: boolean;
|
||||
supportsStore?: boolean;
|
||||
requiresReasoningContentOnAssistantMessages?: boolean;
|
||||
};
|
||||
}
|
||||
@@ -24,9 +27,12 @@ export interface ImportedModelProfile {
|
||||
pi?: ImportedPiModelProfile;
|
||||
}
|
||||
|
||||
const VERIFIED_QWEN_PLUS_MODEL_IDS = new Set([
|
||||
const VERIFIED_QWEN_36_PLUS_MODEL_IDS = new Set([
|
||||
'qwen3.6-plus',
|
||||
'qwen3.6-plus-2026-04-02',
|
||||
]);
|
||||
const VERIFIED_QWEN_PLUS_MODEL_IDS = new Set([
|
||||
...VERIFIED_QWEN_36_PLUS_MODEL_IDS,
|
||||
'qwen3.7-plus',
|
||||
'qwen3.7-plus-2026-05-26',
|
||||
]);
|
||||
@@ -42,7 +48,8 @@ function imageModalities(): ImportedModelProfile['modalities'] {
|
||||
|
||||
export function getImportedModelProfile(rawModelId: string): ImportedModelProfile | null {
|
||||
const modelId = rawModelId.trim();
|
||||
if (modelId.toLowerCase() === 'deepseek-v4-pro') {
|
||||
const normalizedModelId = modelId.toLowerCase();
|
||||
if (normalizedModelId === 'deepseek-v4-pro') {
|
||||
return {
|
||||
modalities: {
|
||||
input: ['text'],
|
||||
@@ -68,7 +75,31 @@ export function getImportedModelProfile(rawModelId: string): ImportedModelProfil
|
||||
},
|
||||
};
|
||||
}
|
||||
if (VERIFIED_QWEN_PLUS_MODEL_IDS.has(modelId.toLowerCase())) {
|
||||
if (normalizedModelId === 'qwen3.8-max') {
|
||||
return {
|
||||
modalities: imageModalities(),
|
||||
limit: {
|
||||
context: 1_000_000,
|
||||
output: 131_072,
|
||||
},
|
||||
pi: {
|
||||
reasoning: true,
|
||||
thinkingLevelMap: {
|
||||
minimal: null,
|
||||
low: 'low',
|
||||
medium: 'medium',
|
||||
high: 'xhigh',
|
||||
},
|
||||
compat: {
|
||||
thinkingFormat: 'qwen',
|
||||
supportsDeveloperRole: false,
|
||||
supportsReasoningEffort: true,
|
||||
supportsStore: false,
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
if (VERIFIED_QWEN_PLUS_MODEL_IDS.has(normalizedModelId)) {
|
||||
return {
|
||||
modalities: imageModalities(),
|
||||
limit: {
|
||||
@@ -76,6 +107,25 @@ export function getImportedModelProfile(rawModelId: string): ImportedModelProfil
|
||||
output: 65_536,
|
||||
},
|
||||
visionTokenEstimator: 'qwen-32px-grid',
|
||||
...(VERIFIED_QWEN_36_PLUS_MODEL_IDS.has(normalizedModelId)
|
||||
? {
|
||||
pi: {
|
||||
reasoning: true,
|
||||
thinkingLevelMap: {
|
||||
minimal: null,
|
||||
low: null,
|
||||
medium: null,
|
||||
high: 'high',
|
||||
},
|
||||
compat: {
|
||||
thinkingFormat: 'qwen' as const,
|
||||
supportsDeveloperRole: false,
|
||||
supportsReasoningEffort: false,
|
||||
supportsStore: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
};
|
||||
}
|
||||
if (QWEN_VL_PATTERN.test(modelId) || QWEN_OMNI_PATTERN.test(modelId)) {
|
||||
|
||||
Reference in New Issue
Block a user