Skip to main content

bxlai

إصدار 1.0.6 من مكتبة Python باسم تثبيت bxlai واستيراد bxAI. تعتمد على Kilo API وتضمّن كتالوج النماذج داخل bxAI.py؛ لا تحتاج models.json أو أي ملفات بيانات وقت التشغيل.

التثبيت

pip install --upgrade bxlai

Python 3.9+، وAndroid/Pydroid وTermux وWindows وLinux. الاعتماد الوحيد وقت التشغيل هو requests.

مثال سريع

from bxAI import *

print(version())
print(Ai(1, "هلو، جاوبني باللهجة العراقية"))
print(model_info(1))
MODLES()

Ai(1, ...) يختار kilo-auto/free ويمكن استدعاؤه دون API key. تتطلب النماذج المصنفة TOKEN مفتاح Kilo API: AiT("YOUR_KILO_TOKEN", 25, "Hello"). لا تضع مفتاحك في كود منشور أو ترسله لأحد.

from getpass import getpass
from bxAI import AiT

token = getpass("Kilo API token: ")
print(AiT(token, 25, "اكتب جواباً مختصراً"))

الدوال

  • Ai(model_number, question): يستدعي نموذجاً FREE بلا مفتاح.
  • AiT(token, model_number, question): يستدعي نموذجاً باستخدام Kilo API token.
  • MODLES(): يعرض النماذج المرقمة بصفحات؛ Enter للتالي وq للخروج.
  • models(): اسم بديل لـMODLES().
  • version(): يعيد 1.0.6.
  • model_info(number): يعيد معلومات عامة دون إظهار model ID الحقيقي.

FREE تشير إلى السعر الصفري في كتالوج Kilo وقت بناء هذه النسخة. الوصول المجهول محدود وفق سياسة Kilo، والتوفر قد يتغير. Auto Free يوجّه الطلبات ديناميكياً إلى مزودين مختلفين؛ قد تسجل بعض الجهات الطلبات وتستخدمها لتحسين الخدمة. لا ترسل معلومات شخصية أو سرية إلى Auto Free.

API وسلوك الإجابة

تستخدم المكتبة نقطة النهاية المتوافقة مع مثال Kilo: https://api.kilo.ai/api/openrouter/chat/completions، مع max_tokens=1024 وtimeout. إذا لم يتضمن رد الخدمة نصاً في choices[0].message.content (مثلاً content: null مع finish_reason=length) فلن تعيد المكتبة نصاً فارغاً؛ ستعيد رسالة [BXAI ERROR] تشرح أن النموذج لم يرجع إجابة نصية. تُعالج كذلك 401/403/404/429/5xx وtimeout وأخطاء الاتصال وJSON. يفعّل BXAI_DEBUG=1 تفاصيل تشخيصية دون تسجيل tokens أو prompt أو الرد.

يصف توثيق Kilo الرسمي حالياً Gateway API والنماذج المجانية هنا. جرى اختبار المسار الوارد من المستخدم أثناء إعداد هذه النسخة؛ قد تتغير المسارات أو شروط الخدمة لاحقاً.

ملفات الإصدار والنشر

rm -rf build dist *.egg-info
python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload --username __token__ dist/*

إدخال API token يتم عند الطلب؛ لا تكتبه ضمن الأمر أو تحفظه في المستودع.

Metadata

Release files for bxlai 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bxlai 1.0.6
File Size Uploaded Provenance Actions
bxlai-1.0.6.tar.gz 13.1 kB Without provenance Details for bxlai-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bxlai 1.0.6
File Interpreter ABI Platform Actions
bxlai-1.0.6-py3-none-any.whl Python 3 none any Details for bxlai-1.0.6-py3-none-any.whl

Total release size: 23.3 kB

Release files / bxlai-1.0.6.tar.gz

Download URL bxlai-1.0.6.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
416e60227e4ff074f34c3f8f0eb6fded64e06bae9e711d46a7327566c086d06e
BLAKE2b-256 checksum
How to use checksums
2e2a5a229451862cfb2ed317b158cecb54d8f81750fead4a72e0e8bef9e4db5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / bxlai-1.0.6-py3-none-any.whl

Download URL bxlai-1.0.6-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
859005a743940def8b17d7fca0ce7908067c820cdfb8cbd46dd43d79a4c30dcf
BLAKE2b-256 checksum
How to use checksums
6d03a3f240253c5fd7f2cfc182cf93ccd01ccb3dfa26b66e42c504530b21a283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Security for bxlai 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page