AIInfoConfig.swift 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. return kVerificationServer
  37. }
  38. }
  39. var memberAIActionURL: String {
  40. return "http://139.196.160.101:8081"
  41. }
  42. }