provider-family-responsive.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. export const PROVIDER_RESPONSIVE_TEAM_NAME = "北京智谱华章科技股份有限公司";
  2. // 用例专属业务数据:只提供有效体验权益,不发起真实购买或模型请求。
  3. // GLM-5-Turbo 已退役,共享 Start balance 默认使用当前模型 GLM-5.3。
  4. export function buildProviderResponsiveStartBalance(model = "GLM-5.3") {
  5. const now = Math.floor(Date.now() / 1000);
  6. const planId = "zcode-v3-start-plan";
  7. const entitlementId = "E2E_PROVIDER_RESPONSIVE_START";
  8. return {
  9. code: 0,
  10. success: true,
  11. msg: "ok",
  12. data: {
  13. server_time: now,
  14. plans: [
  15. {
  16. plan_id: planId,
  17. name: "ZCode V3 Start Plan",
  18. status: "active",
  19. starts_at: now - 86400,
  20. ends_at: now + 86400,
  21. entitlements: [{ entitlement_id: entitlementId, effective_at: 0, show_name: model }],
  22. },
  23. ],
  24. balances: [
  25. {
  26. plan_id: planId,
  27. entitlement_id: entitlementId,
  28. show_name: model,
  29. capabilities: [`model:${model.toLowerCase()}`],
  30. total_units: 1000000000,
  31. used_units: 0,
  32. remaining_units: 1000000000,
  33. available_units: 1000000000,
  34. expires_at: now + 86400,
  35. },
  36. ],
  37. },
  38. };
  39. }