Skip to content

Commit

Permalink
perf: split caiyun test token to more parts
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Nov 12, 2023
1 parent 1b4ca89 commit 1d044c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Easydict/Feature/Service/Caiyun/CaiyunService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public final class CaiyunService: QueryService {
private var apiEndPoint = "https://api.interpreter.caiyunai.com/v1/translator"

/// Official Test Token for Caiyun
private var token = "3975l6lr5" + "pcbvidl6jl2"
/// Split caiyun test token to more parts to avoid GitGuardian warning.
private var token = "397" + "5l6" + "lr5" + "pcb" + "vid" + "l6j" + "l2"

override public func translate(_ text: String, from: Language, to: Language, completion: @escaping (EZQueryResult?, Error?) -> Void) {
if prehandleQueryTextLanguage(text, autoConvertChineseText: false, from: from, to: to, completion: completion) {
Expand Down

0 comments on commit 1d044c9

Please sign in to comment.