-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig-sample.json
27 lines (27 loc) · 1.04 KB
/
config-sample.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"api_id": "your_telegram_api_id",
"api_hash": "your_telegram_api_hash",
"collapsed_length": 300,
"translation_service": "deeplx",
"google": {
"creds": {}
},
"azure": {
"key": "your_azure_key",
"endpoint": "https://api.cognitive.microsofttranslator.com/",
"region": "global"
},
"deeplx": {
"url": "your_deeplx_url"
},
"openai": {
"enable": true,
"target_lang": "en",
"api_key": "your_openai_api_key",
"url": "https://api.openai.com/v1/chat/completions",
"model": "gpt-3.5-turbo",
"prompt": "If my text cannot be translated or contains nonsencial content, just repeat my words precisely. As an American English expert, you'll help users express themselves clearly. You're not just translating, but rephrasing to maintain clarity. Use plain English and common idioms, and vary sentence lengths for natural flow. Avoid regional expressions. Respond with the translated sentence.",
"temperature": 0.5
},
"target_config": {}
}