





















@@ -1,133 +1,23 @@
1+import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
12import type { ModelDefinitionConfig } from "openclaw/plugin-sdk/provider-model-shared";
3+import manifest from "./openclaw.plugin.json" with { type: "json" };
243-export const TOGETHER_BASE_URL = "https://api.together.xyz/v1";
5+const TOGETHER_MANIFEST_PROVIDER = buildManifestModelProviderConfig({
6+providerId: "together",
7+catalog: manifest.modelCatalog.providers.together,
8+});
495-export const TOGETHER_MODEL_CATALOG: ModelDefinitionConfig[] = [
6-{
7-id: "zai-org/GLM-4.7",
8-name: "GLM 4.7 Fp8",
9-reasoning: false,
10-input: ["text"],
11-contextWindow: 202752,
12-maxTokens: 8192,
13-cost: {
14-input: 0.45,
15-output: 2.0,
16-cacheRead: 0.45,
17-cacheWrite: 2.0,
18-},
19-},
20-{
21-id: "moonshotai/Kimi-K2.5",
22-name: "Kimi K2.5",
23-reasoning: true,
24-input: ["text", "image"],
25-cost: {
26-input: 0.5,
27-output: 2.8,
28-cacheRead: 0.5,
29-cacheWrite: 2.8,
30-},
31-contextWindow: 262144,
32-maxTokens: 32768,
33-},
34-{
35-id: "meta-llama/Llama-3.3-70B-Instruct-Turbo",
36-name: "Llama 3.3 70B Instruct Turbo",
37-reasoning: false,
38-input: ["text"],
39-contextWindow: 131072,
40-maxTokens: 8192,
41-cost: {
42-input: 0.88,
43-output: 0.88,
44-cacheRead: 0.88,
45-cacheWrite: 0.88,
46-},
47-},
48-{
49-id: "meta-llama/Llama-4-Scout-17B-16E-Instruct",
50-name: "Llama 4 Scout 17B 16E Instruct",
51-reasoning: false,
52-input: ["text", "image"],
53-contextWindow: 10000000,
54-maxTokens: 32768,
55-cost: {
56-input: 0.18,
57-output: 0.59,
58-cacheRead: 0.18,
59-cacheWrite: 0.18,
60-},
61-},
62-{
63-id: "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
64-name: "Llama 4 Maverick 17B 128E Instruct FP8",
65-reasoning: false,
66-input: ["text", "image"],
67-contextWindow: 20000000,
68-maxTokens: 32768,
69-cost: {
70-input: 0.27,
71-output: 0.85,
72-cacheRead: 0.27,
73-cacheWrite: 0.27,
74-},
75-},
76-{
77-id: "deepseek-ai/DeepSeek-V3.1",
78-name: "DeepSeek V3.1",
79-reasoning: false,
80-input: ["text"],
81-contextWindow: 131072,
82-maxTokens: 8192,
83-cost: {
84-input: 0.6,
85-output: 1.25,
86-cacheRead: 0.6,
87-cacheWrite: 0.6,
88-},
89-},
90-{
91-id: "deepseek-ai/DeepSeek-R1",
92-name: "DeepSeek R1",
93-reasoning: true,
94-input: ["text"],
95-contextWindow: 131072,
96-maxTokens: 8192,
97-cost: {
98-input: 3.0,
99-output: 7.0,
100-cacheRead: 3.0,
101-cacheWrite: 3.0,
102-},
103-},
104-{
105-id: "moonshotai/Kimi-K2-Instruct-0905",
106-name: "Kimi K2-Instruct 0905",
107-reasoning: false,
108-input: ["text"],
109-contextWindow: 262144,
110-maxTokens: 8192,
111-cost: {
112-input: 1.0,
113-output: 3.0,
114-cacheRead: 1.0,
115-cacheWrite: 3.0,
116-},
117-},
118-];
10+export const TOGETHER_BASE_URL = TOGETHER_MANIFEST_PROVIDER.baseUrl;
11+12+export const TOGETHER_MODEL_CATALOG: ModelDefinitionConfig[] = TOGETHER_MANIFEST_PROVIDER.models;
1191312014export function buildTogetherModelDefinition(
12115model: (typeof TOGETHER_MODEL_CATALOG)[number],
12216): ModelDefinitionConfig {
12317return {
124-id: model.id,
125-name: model.name,
18+ ...model,
12619api: "openai-completions",
127-reasoning: model.reasoning,
128-input: model.input,
129-cost: model.cost,
130-contextWindow: model.contextWindow,
131-maxTokens: model.maxTokens,
20+input: [...model.input],
21+cost: { ...model.cost },
13222};
13323}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。