-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathbyteplus-coding.ts
More file actions
95 lines (94 loc) · 3.49 KB
/
Copy pathbyteplus-coding.ts
File metadata and controls
95 lines (94 loc) · 3.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import {
REASONING_VARIANTS_BINARY,
REASONING_VARIANTS_MINIMAL_LOW_MEDIUM_HIGH,
} from '@/lib/ai-gateway/providers/model-settings';
import { isReasoningExplicitlyDisabled } from '@/lib/ai-gateway/providers/openrouter/request-helpers';
import type { DirectByokProvider } from '@/lib/ai-gateway/providers/direct-byok/types';
export default {
id: 'byteplus-coding',
base_url: 'https://ark.ap-southeast.bytepluses.com/api/coding/v3',
supported_chat_apis: ['chat_completions'],
default_ai_sdk_provider: 'openai-compatible',
transformRequest(context) {
context.request.body.thinking = {
type: isReasoningExplicitlyDisabled(context.request) ? 'disabled' : 'enabled',
};
},
models: () =>
Promise.resolve([
{
id: 'bytedance-seed-code',
name: 'Seed-Code',
description:
"ByteDance's latest code model has been deeply optimized for agentic programming tasks.",
flags: ['recommended', 'vision'],
context_length: 262144,
max_completion_tokens: 32768,
variants: REASONING_VARIANTS_BINARY,
},
{
id: 'kimi-k2.5',
name: 'Kimi-K2.5',
description:
'Open-source SoTA native multimodal model with text-only input (for now), stronger code/UI generation.',
context_length: 262144,
max_completion_tokens: 32768,
variants: REASONING_VARIANTS_BINARY,
},
{
id: 'glm-5.1',
name: 'GLM-5.1',
description:
'Z.AI’s latest flagship model, designed for long-horizon tasks. It can work continuously and autonomously on a single task for up to 8 hours.',
context_length: 204800,
max_completion_tokens: 131072,
variants: REASONING_VARIANTS_BINARY,
},
{
id: 'glm-4.7',
name: 'GLM-4.7',
description:
"Z.ai's latest flagship model, enhanced programming capabilities and more stable multi-step reasoning/execution.",
context_length: 204800,
max_completion_tokens: 131072,
variants: REASONING_VARIANTS_BINARY,
},
{
id: 'gpt-oss-120b',
name: 'GPT-OSS-120B',
description:
"OpenAI's open-weight model, 117B parameters with 5.1B active parameters for production, general purpose, high reasoning use cases.",
context_length: 131072,
max_completion_tokens: 65536,
},
{
id: 'dola-seed-2.0-code',
name: 'Dola-Seed-2.0-Code',
description: 'An enhanced coding version of Seed 2.0, better suited for agentic coding.',
flags: ['vision'],
context_length: 262144,
max_completion_tokens: 131072,
variants: REASONING_VARIANTS_MINIMAL_LOW_MEDIUM_HIGH,
},
{
id: 'dola-seed-2.0-pro',
name: 'Dola-Seed-2.0-Pro',
description:
'Focused on long-chain reasoning and stability in complex task execution, designed for complex real-world business scenarios.',
flags: ['vision'],
context_length: 262144,
max_completion_tokens: 131072,
variants: REASONING_VARIANTS_MINIMAL_LOW_MEDIUM_HIGH,
},
{
id: 'dola-seed-2.0-lite',
name: 'Dola-Seed-2.0-Lite',
description:
'Balances generation quality and response speed, making it a strong general-purpose production model.',
flags: ['vision'],
context_length: 262144,
max_completion_tokens: 131072,
variants: REASONING_VARIANTS_MINIMAL_LOW_MEDIUM_HIGH,
},
]),
} satisfies DirectByokProvider;