AIInfoConfig.swift 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // AIInfoConfig.swift
  3. // PDF Reader Pro Edition
  4. //
  5. // Created by Niehaoyu on 2024/1/17.
  6. //
  7. import Foundation
  8. @objc public enum AIConfigType: NSInteger {
  9. case none = 0
  10. case summarize = 1
  11. case reWriting = 2
  12. case proofreading = 3
  13. case translate = 4
  14. }
  15. //AI对话框类型
  16. @objc public enum AIChatInfoType: NSInteger {
  17. case none = 0
  18. case defaultTip = 1 //预算提示内容
  19. case chatFileUpload = 2 //上传文件类型
  20. case chatStringUpload = 3 //上传文字类型
  21. case chatStringResult = 4 //返回文字类型
  22. case chatFileResult = 5 //返回文件类型
  23. case chatTranslateResult = 6
  24. }
  25. @objc public enum AIChatInfoState: NSInteger {
  26. case stateNone = 0
  27. case stateLoading = 1 //预加载Loading
  28. case stateFailed = 2 //返回错误
  29. case stateSuccess = 3 //返回成功
  30. case stateCancel = 4 //翻译取消状态
  31. case stateInfoConfirm = 5 //翻译二次确认状态
  32. }
  33. class AIInfoConfig: NSObject {
  34. var aiActionURL: String {
  35. get {
  36. // #if DEBUG
  37. return kVerificationServer
  38. // #else
  39. // //正式服务器
  40. // return "https://store.pdfreaderpro.com"
  41. // #endif
  42. }
  43. }
  44. }