provider-family-responsive.ts 1.2 KB

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