qwen-api-proxy 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.env.example ADDED
@@ -0,0 +1,49 @@
1
+ # Telegram уведомления и бот
2
+ # Получите токен бота у @BotFather в Telegram
3
+ TELEGRAM_BOT_TOKEN=your_bot_token_here
4
+
5
+ # ID пользователей Telegram (через запятую)
6
+ # Чтобы узнать свой ID, напишите боту @userinfobot
7
+ TELEGRAM_USER_IDS=123456789,987654321
8
+
9
+ # Время предупреждения об истечении токена в миллисекундах (по умолчанию 1 час = 3600000)
10
+ TOKEN_EXPIRY_WARNING_MS=3600000
11
+
12
+ # Telegram прокси (опционально)
13
+ # Используйте если Telegram API заблокирован в вашем регионе
14
+ # Поддерживаемые протоколы: http, https, socks4, socks5
15
+ # TELEGRAM_PROXY=http://proxy.example.com:8080
16
+ # TELEGRAM_PROXY=http://username:password@proxy.example.com:8080
17
+ # TELEGRAM_PROXY=socks5://proxy.example.com:1080
18
+
19
+ # Qwen LLM прокси (опционально)
20
+ # Используйте для доступа к Qwen API через прокси
21
+ # Поддерживаемые протоколы: http, https, socks, socks5
22
+ # QWEN_PROXY=http://proxy.example.com:8080
23
+ # QWEN_PROXY=http://username:password@proxy.example.com:8080
24
+ # QWEN_PROXY=socks5://proxy.example.com:1080
25
+
26
+ # Прокси для скачивания файлов по HTTP/HTTPS (опционально)
27
+ # Используется когда API получает URLs файлов которые нужно скачать
28
+ # Поддерживаемые протоколы: http, https, socks4, socks5
29
+ # FILE_DOWNLOAD_PROXY=http://proxy.example.com:8080
30
+ # FILE_DOWNLOAD_PROXY=http://username:password@proxy.example.com:8080
31
+ # FILE_DOWNLOAD_PROXY=socks5://proxy.example.com:1080
32
+
33
+ # Модель по умолчанию для LLM чата
34
+ # DEFAULT_MODEL=qwen-max-latest
35
+
36
+ # ─── Режим сессий чата ──────────────────────────────────────────────────────
37
+ # FORCE_NEW_CHAT_PER_REQUEST=true: каждый запрос создает новый диалог (как OpenAI API)
38
+ # FORCE_NEW_CHAT_PER_REQUEST=false (по умолчанию): восстанавливает предыдущий диалог
39
+ # FORCE_NEW_CHAT_PER_REQUEST=true
40
+
41
+ # ─── Генерация изображений ──────────────────────────────────────────────────
42
+ # Режим генерации изображений:
43
+ # 'dashscope' (по умолчанию) - использует DASHSCOPE_API_KEY напрямую
44
+ # 'browser' - использует браузер через Qwen Chat API (как генерация текста)
45
+ IMAGE_GENERATION_MODE=browser
46
+
47
+ # DashScope API ключ (требуется при IMAGE_GENERATION_MODE=dashscope)
48
+ # Получить: https://dashscope.console.aliyun.com/
49
+ DASHSCOPE_API_KEY=your-dashscope-api-key-here
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 EndyKaufman <admin@site15.ru>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.