feat(coding): add model tools and device packages
This commit is contained in:
1 parent
841273b433
commit
664b8823a0
60 files changed
+3847
-2068
No files matched your search
@@ -44,6 +44,13 @@ describe('getImportedModelProfile', () => {
|
||||
'deepseek/deepseek-v4-pro': {
|
||||
reasoning_efforts: ['max', 'low', 'low', 'medium', 'unsupported'],
|
||||
reasoning_can_disable: true,
|
||||
web_search: {
|
||||
schema_version: 1,
|
||||
adapter: 'bailian_chat_completions',
|
||||
supports_forced_search: true,
|
||||
source_mode: 'inline_or_structured',
|
||||
billing_authority: 'model_request',
|
||||
},
|
||||
},
|
||||
'qwen3.8-max': {
|
||||
reasoning_efforts: ['high'],
|
||||
@@ -57,6 +64,13 @@ describe('getImportedModelProfile', () => {
|
||||
'deepseek-v4-pro': {
|
||||
reasoningEfforts: ['low', 'max'],
|
||||
reasoningCanDisable: true,
|
||||
webSearch: {
|
||||
schemaVersion: 1,
|
||||
adapter: 'bailian-chat-completions',
|
||||
supportsForcedSearch: true,
|
||||
sourceMode: 'inline-or-structured',
|
||||
billingAuthority: 'model-request',
|
||||
},
|
||||
},
|
||||
'qwen3.8-max': {
|
||||
reasoningEfforts: ['high'],
|
||||
@@ -65,6 +79,34 @@ describe('getImportedModelProfile', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it.each([
|
||||
{ adapter: 'unknown' },
|
||||
{ supports_forced_search: false },
|
||||
{ source_mode: 'inline' },
|
||||
{ billing_authority: 'plugin_charge' },
|
||||
{ schema_version: 2 },
|
||||
])('drops only an invalid Web Search projection: $adapter', (override) => {
|
||||
expect(normalizeImportedModelCapabilities({
|
||||
'deepseek-v4-pro': {
|
||||
reasoning_efforts: ['high'],
|
||||
reasoning_can_disable: true,
|
||||
web_search: {
|
||||
schema_version: 1,
|
||||
adapter: 'bailian_chat_completions',
|
||||
supports_forced_search: true,
|
||||
source_mode: 'inline_or_structured',
|
||||
billing_authority: 'model_request',
|
||||
...override,
|
||||
},
|
||||
},
|
||||
})).toEqual({
|
||||
'deepseek-v4-pro': {
|
||||
reasoningEfforts: ['high'],
|
||||
reasoningCanDisable: true,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it('preserves an explicit empty effort list so the server can disable local reasoning metadata', () => {
|
||||
expect(normalizeImportedModelCapabilities({
|
||||
'deepseek-v4-pro': {
|
||||
|
||||
Reference in new issue
Block a user