providerModelSmartDraftFixture.ts 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import type { ProviderSettingsFormModel } from "@/lib/providerSettingsFormTypes.js";
  2. export function smartDraftModel(): ProviderSettingsFormModel {
  3. const config = {
  4. enabled: false,
  5. properties: {
  6. requiresMfjsToolSchema: false,
  7. contextWindow: 100000,
  8. inputFormat: {
  9. supportsText: true,
  10. supportsImage: true,
  11. supportsVideo: false,
  12. supportsAudio: true,
  13. supportsPdf: false,
  14. },
  15. outputFormat: { supportsText: true },
  16. supportsToolCall: true,
  17. supportsJsonSchemaOutput: false,
  18. supportsNativeWebSearch: false,
  19. supportsMidConversationSystem: false,
  20. },
  21. optionSpecs: {
  22. reasoningLevel: { values: ["low", "high"], map: "{}" },
  23. maxOutputTokens: {
  24. max: 32000,
  25. map: "{'max_tokens': maxOutputTokens}",
  26. },
  27. },
  28. };
  29. return {
  30. kind: "candidate",
  31. modelId: "a",
  32. builtin: false,
  33. config,
  34. inheritedConfig: config,
  35. personalConfig: { enabled: false },
  36. hasPersonalConfig: true,
  37. executable: true,
  38. selectable: true,
  39. };
  40. }