1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- //
- // AIInfoConfig.swift
- // PDF Reader Pro Edition
- //
- // Created by Niehaoyu on 2024/1/17.
- //
- import Foundation
- @objc public enum AIConfigType: NSInteger {
- case none = 0
- case summarize = 1
- case reWriting = 2
- case proofreading = 3
- case translate = 4
- }
- //AI对话框类型
- @objc public enum AIChatInfoType: NSInteger {
- case none = 0
- case defaultTip = 1 //预算提示内容
- case chatFileUpload = 2 //上传文件类型
- case chatStringUpload = 3 //上传文字类型
- case chatStringResult = 4 //返回文字类型
- case chatFileResult = 5 //返回文件类型
- case chatTranslateResult = 6
-
-
- }
- @objc public enum AIChatInfoState: NSInteger {
- case stateNone = 0
- case stateLoading = 1 //预加载Loading
- case stateFailed = 2 //返回错误
- case stateSuccess = 3 //返回成功
- case stateCancel = 4 //翻译取消状态
- case stateInfoConfirm = 5 //翻译二次确认状态
-
-
- }
- class AIInfoConfig: NSObject {
- var aiActionURL: String {
- get {
- return kVerificationServer
- }
- }
-
- var memberAIActionURL: String {
- if kTestMode == 1{
- return "http://139.196.160.101:8081"
- } else {
- return "https://pdfmaster.pdfreaderpro.com"
- }
- }
- }
|