We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3a7d4b commit bee687bCopy full SHA for bee687b
Mikoto/Translators/Implementations/ChatGPTTranslator.cs
@@ -43,7 +43,7 @@ public string GetLastError()
43
return null;
44
}
45
string retString;
46
- string jsonParam = $"{{\"model\": \"{openai_model}\",\"messages\": [{{\"role\": \"system\", \"content\": \"Translate {srcLang} To {desLang} output them in JSON format\"}},{{\"role\": \"user\", \"content\": \"{q}\"}}], \"response_format\": {{\"type\": \"{format}\"}}, \"max_tokens\": {max_tokens}, \"temperature\": {temperature}}}";
+ string jsonParam = $"{{\"model\": \"{openai_model}\",\"messages\": [{{\"role\": \"system\", \"content\": \"翻译{srcLang}成{desLang}以JSON format输出\"}},{{\"role\": \"user\", \"content\": \"{q}\"}}], \"response_format\": {{\"type\": \"{format}\"}}, \"max_tokens\": {max_tokens}, \"temperature\": {temperature}}}";
47
var hc = CommonHttpClient.Instance;
48
var req = new StringContent(jsonParam, null, "application/json");
49
hc.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", apiKey);
0 commit comments