Skip to main content

高效、易用的 OpenRouter API Python 客户端,支持同步与异步调用。

Project description

XQCOpenRouter

🚀 XQCOpenRouter

XQC 是微信公众号:XiaoqiangClub 的简写

XQCOpenRouter 是高效、易用的 OpenRouter API Python 客户端,支持同步与异步调用方式,适合快速集成与二次开发。


🌟 功能亮点

  • 🎯 自动选择可用的免费模型进行对话
  • 🔄 同时支持同步(Sync)与异步(Async)调用
  • 📄 支持文件导入提示词
  • 🧠 支持主模型(primary_model)、备用模型(backup_models)、自动免费模型三重兜底
  • 🆓 一行代码获取免费大模型列表,轻松免费用大模型
  • 🔧 动态修改提示词,灵活适配多场景
  • 🛡️ 支持自动选择最新免费模型、自动降级等高级特性

📒 说明文档 📒


💬 联系与支持

  • 👨‍💻 作者:Xiaoqiang
  • 📢 微信公众号:XiaoqiangClub
  • 📧 反馈与建议请通过邮件联系:xiaoqiangclub@hotmail.com
  • 请我喝咖啡支持项目发展:

请我喝咖啡

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xqcopenrouter-0.0.2.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xqcopenrouter-0.0.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file xqcopenrouter-0.0.2.tar.gz.

File metadata

  • Download URL: xqcopenrouter-0.0.2.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Windows/11

File hashes

Hashes for xqcopenrouter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 52b83e86c25643d2c5b3801758272df682aa37d5f714a7efddffe602d3d54822
MD5 f6d2e1ff22d30bf870d883f83ea11351
BLAKE2b-256 73ed3a672c9a511caa4ae5744ecb9f98d8029961515f8630d50670d768d34698

See more details on using hashes here.

File details

Details for the file xqcopenrouter-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: xqcopenrouter-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Windows/11

File hashes

Hashes for xqcopenrouter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0cc16f59c656ab7b9274c88a2a62c1881e5192593e4fac2279a84a7ee1a32ca
MD5 a63a160a28e0e40160b549ead4d615d2
BLAKE2b-256 f4ba21f809b27f866d26666e7880272d70146e9834cc28c2fd96582ec151a82f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page