Skip to content

Commit 9622a15

Browse files
committed
Update ChatGPTTranslator to use DeepSeek API endpoints and model
1 parent fe4b767 commit 9622a15

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Mikoto/Translators/Implementations/ChatGPTTranslator.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ namespace Mikoto.Translators.Implementations
1414
public class ChatGPTTranslator : ITranslator
1515
{
1616
private ChatGPTTranslator() { }
17-
public static readonly string SIGN_UP_URL = "https://platform.openai.com";
18-
public static readonly string BILL_URL = "https://platform.openai.com/account/usage";
17+
public static readonly string SIGN_UP_URL = "https://api.deepseek.com";
18+
public static readonly string BILL_URL = "https://api.deepseek.com/user/balance";
1919
public static readonly string DOCUMENT_URL = "https://platform.openai.com/docs/introduction/overview";
20-
private string openai_model = "gpt-3.5-turbo";
20+
private string openai_model = "deepseek-chat";
2121

22-
private string? apiKey; //ChatGPT翻译API的密钥
23-
private string? apiUrl; //ChatGPT翻译API的URL
22+
private string? apiKey; //deepseek翻译API的密钥
23+
private string? apiUrl; //deepseek翻译API的URL
2424
private string errorInfo = string.Empty; //错误信息
2525

2626
public string TranslatorDisplayName { get { return Application.Current.Resources["ChatGPTTranslator"].ToString()!; } }

0 commit comments

Comments
 (0)