🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { ModelProvider } from 'model-bank';
import { createOpenAICompatibleRuntime } from '../../core/openaiCompatible';
import { processMultiProviderModelList } from '../../utils/modelParse';
export const LobeVolcengineCodingPlanAI = createOpenAICompatibleRuntime({
baseURL: 'https://ark.cn-beijing.volces.com/api/coding/v3',
chatCompletion: {
handlePayload: (payload) => {
const { model, thinking, ...rest } = payload;
return {
...rest,
...(thinking?.type === 'enabled' &&
thinking?.budget_tokens !== 0 && {
enable_thinking: true,
thinking_budget: thinking?.budget_tokens || undefined,
}),
model,
stream: true,
...(payload.tools && {
parallel_tool_calls: true,
}),
} as any;
},
},
debug: {
chatCompletion: () => process.env.DEBUG_VOLCENGINE_CODING_PLAN_CHAT_COMPLETION === '1',
},
models: async () => {
const { volcenginecodingplan } = await import('model-bank');
return processMultiProviderModelList(
volcenginecodingplan.map((m: { id: string }) => ({ id: m.id })),
'volcenginecodingplan',
);
},
provider: ModelProvider.VolcengineCodingPlan,
});