yeref 0.25.29__py3-none-any.whl → 0.25.31__py3-none-any.whl
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.
- yeref/l_.py +2 -18
- yeref/yeref.py +5 -3
- {yeref-0.25.29.dist-info → yeref-0.25.31.dist-info}/METADATA +1 -1
- yeref-0.25.31.dist-info/RECORD +8 -0
- yeref-0.25.29.dist-info/RECORD +0 -8
- {yeref-0.25.29.dist-info → yeref-0.25.31.dist-info}/WHEEL +0 -0
- {yeref-0.25.29.dist-info → yeref-0.25.31.dist-info}/top_level.txt +0 -0
yeref/l_.py
CHANGED
@@ -2650,22 +2650,6 @@ l_ai_welcome = {
|
|
2650
2650
|
'zh': "🌱 <b>{0}</b>,欢迎使用<i>登陆机器人</i>来神经生成内容:\n\n▪️<b>文本/图像</b>\n▪️<b>神经分析</b> @tg-tech频道\n▪️<b>语音识别</b>\n▪️<b>清理⁰历史记录</b> /start\n\n❗️<b>定期</b >-可更新/内容",
|
2651
2651
|
'ar': "🌱 <b>{0}</b>، مرحبًا بك في <i>الروبوت المقصود</i> لإنشاء المحتوى العصبي:\n\n▪️<b>نص/صورة</b>\n▪️<b>تحليل الأعصاب</b> قنوات @tg-tech\n▪️<b>التعرف على الكلام</b>\n▪️<b>تنظيف ⁰التاريخ</b> /بدء\n\n❗️<b>بانتظام</ b >-قابل للتحديث/المحتوى",
|
2652
2652
|
}
|
2653
|
-
l_ai_welcome_instruction = {
|
2654
|
-
'ru': 'https://telegra.ph/FereyAIBot-11-15',
|
2655
|
-
'en': 'https://telegra.ph/FereyBotBot-11-13',
|
2656
|
-
'es': 'https://telegra.ph/FereyBotBot-11-13',
|
2657
|
-
'fr': 'https://telegra.ph/FereyBotBot-11-13',
|
2658
|
-
'zh': 'https://telegra.ph/FereyBotBot-11-13',
|
2659
|
-
'ar': 'https://telegra.ph/FereyBotBot-11-13',
|
2660
|
-
}
|
2661
|
-
l_subscribe_ai = {
|
2662
|
-
'ru': "👩🏽💻 <b>Оформи</b> ежемесячную подписку:\n\n¹ [<b>Все боты</b> и проекты (-<u>22</u>%)]\n² [@{0}-бот]:\n<blockquote>▪️отсутствие <b>режима ожидания</b>\n▪️аналитика постов канала\n(<i>+финансовый потенциал</i>)</blockquote>",
|
2663
|
-
'en': "👩🏽💻 <b>Subscribe</b> to a monthly subscription:\n\n¹ [<b>All bots</b> and projects (-<u>22</u>%)]\n² [@{0 }-bot]:\n▪️lack of <b>standby mode</b>\n▪️channel post analytics\n(<i>+financial potential</i>)",
|
2664
|
-
'es': "👩🏽💻 <b>Suscríbete</b> a una suscripción mensual:\n\n¹ [<b>Todos los bots</b> y proyectos (-<u>22</u>%)]\n² [@ {0 }-bot]:\n▪️falta de <b>modo de espera</b>\n▪️análisis de publicaciones del canal\n(<i>+potencial financiero</i>)\n\n👩🏽💻 / balance",
|
2665
|
-
'fr': "👩🏽💻 <b>S'abonner</b> à un abonnement mensuel :\n\n¹ [<b>Tous les robots</b> et projets (-<u>22</u>%)]\n² [@ {0 }-bot] :\n▪️manque de <b>mode veille</b>\n▪️analyse des publications de chaîne\n(<i>+potentiel financier</i>)\n\n👩🏽💻 / équilibre",
|
2666
|
-
'zh': "👩🏽💻<b>订阅</b>按月订阅:\n\n1 [<b>所有机器人</b>和项目 (-<u>22</u>%)]\n² [@ {0 }-bot]:\n▪️缺乏<b>待机模式</b>\n▪️频道后期分析\n(<i>+财务潜力</i>)\n\n👩🏽💻 /平衡",
|
2667
|
-
'ar': "👩🏽💻 <b>اشترك</b> في اشتراك شهري:\n\n¹ [<b>جميع الروبوتات</b> والمشاريع (-<u>22</u>%)]\n² [@ {0 }-bot]:\n▪️عدم وجود <b>وضع الاستعداد</b>\n▪️تحليلات منشورات القناة\n(<i>+الإمكانات المالية</i>)\n\n👩🏽💻 / توازن",
|
2668
|
-
}
|
2669
2653
|
|
2670
2654
|
l_gen_txt = {
|
2671
2655
|
'ru': "📘 Текст{0}",
|
@@ -2733,7 +2717,7 @@ l_generate_wait = {
|
|
2733
2717
|
'ar': "👩🏽💻 <b>اختر الوضع</b> أو <b>انتظر</b> حتى نهاية الجيل..",
|
2734
2718
|
}
|
2735
2719
|
l_generate_subcribe = {
|
2736
|
-
'ru': "👩🏽💻 Подожди {0}сек или оформи 💨Подписку",
|
2720
|
+
'ru': "👩🏽💻 Подожди {0} сек или оформи 💨Подписку",
|
2737
2721
|
'en': "👩🏽💻 Wait {0}sec or subscribe 💨",
|
2738
2722
|
'es': "👩🏽💻 Espere {0}seg o suscríbase 💨",
|
2739
2723
|
'fr': "👩🏽💻 Attendez {0}sec ou abonnez-vous 💨",
|
@@ -2789,7 +2773,7 @@ l_generate_errchn = {
|
|
2789
2773
|
'ar': "👩🏽💻 <b>خطأ</b> في الدخول إلى القناة (حاول لاحقًا أو اجعل القناة عامة)",
|
2790
2774
|
}
|
2791
2775
|
l_ai_request = {
|
2792
|
-
'ru': "👩🏽💻 <i><b>Обработка</b> запроса..\n#длительность 0мин</i>",
|
2776
|
+
'ru': "👩🏽💻 <i><b>Обработка</b> запроса..\n#длительность 0 мин</i>",
|
2793
2777
|
'en': "👩🏽💻 <i><b>Processing</b> request..\n#duration 0 min</i>",
|
2794
2778
|
'es': "👩🏽💻 <i><b>Procesando</b> solicitud..\n#duración 0 min</i>",
|
2795
2779
|
'fr': "👩🏽💻 <i><b>Traitement</b> demande..\n#durée 0 min</i>",
|
yeref/yeref.py
CHANGED
@@ -5060,6 +5060,7 @@ async def outsource_generate(lst, path='link_path'):
|
|
5060
5060
|
print(f"g4f: {res}")
|
5061
5061
|
elif item['type'] == 'img':
|
5062
5062
|
providers = await get_neuro_keys(path, "image")
|
5063
|
+
|
5063
5064
|
for provider_name, provider_keys in providers.items():
|
5064
5065
|
for api_key in provider_keys:
|
5065
5066
|
try:
|
@@ -5256,14 +5257,15 @@ async def outsource_generate(lst, path='link_path'):
|
|
5256
5257
|
res = await client.images.generate(prompt=item['prompt'],
|
5257
5258
|
model=f"gpt-image-1",
|
5258
5259
|
n=1, # max 1 for dalle-3
|
5259
|
-
quality="low", # low
|
5260
|
-
response_format='url',
|
5260
|
+
quality="low", # low 2,55 rub, medium 12 rub
|
5261
|
+
# response_format='url',
|
5261
5262
|
size="1024x1024",
|
5262
5263
|
# size="512x512",
|
5263
5264
|
# size="256x256",
|
5264
5265
|
)
|
5266
|
+
print(f"{res.data=}")
|
5265
5267
|
for it in res.data:
|
5266
|
-
result.append({'type': item['type'], 'answer': it.
|
5268
|
+
result.append({'type': item['type'], 'answer': it.b64_json})
|
5267
5269
|
return
|
5268
5270
|
except Exception as e:
|
5269
5271
|
logger.info(log_ % f"{api_key} " + str(e))
|
@@ -0,0 +1,8 @@
|
|
1
|
+
yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
|
2
|
+
yeref/l_.py,sha256=0N0R6f4Sgs3Q4mk51BB_5QzX86dygupYwigwBvFRYC0,1171319
|
3
|
+
yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
|
4
|
+
yeref/yeref.py,sha256=EDNLqW91lvpwJ0eqrNxE1Bn6-uuHqZix5-FeIuvhe4g,1024539
|
5
|
+
yeref-0.25.31.dist-info/METADATA,sha256=8Plhq7ubzCviXGFgHGPqgPjjXmZt8mHK6uFC6s2Hf2U,119
|
6
|
+
yeref-0.25.31.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
+
yeref-0.25.31.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
+
yeref-0.25.31.dist-info/RECORD,,
|
yeref-0.25.29.dist-info/RECORD
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
|
2
|
-
yeref/l_.py,sha256=LsciHUN0b5NbsLsRRbG12blZGXVr_i4Fhj2aQItIZbI,1173447
|
3
|
-
yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
|
4
|
-
yeref/yeref.py,sha256=wLWW0GQh9scSuo76sKs5160BpWDwI87C7Pw5oobh54o,1024466
|
5
|
-
yeref-0.25.29.dist-info/METADATA,sha256=F93GjEMMa6x2DnLSgyr2_ne-meFFv22lytOLnktxwgg,119
|
6
|
-
yeref-0.25.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
7
|
-
yeref-0.25.29.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
|
8
|
-
yeref-0.25.29.dist-info/RECORD,,
|
File without changes
|
File without changes
|