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.1.tar.gz (9.6 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.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xqcopenrouter-0.0.1.tar.gz
  • Upload date:
  • Size: 9.6 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.1.tar.gz
Algorithm Hash digest
SHA256 861852cc6efa79418f18235b6351617e0faebfaa467dccece09d59b3edb3830a
MD5 50b53d1744677ac3055c4e41a33ad46f
BLAKE2b-256 a3826110516c34dcb524cc97efa4bfa44fb49b54bdd3b49dad2500dc2931b7d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xqcopenrouter-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e588733c3e3d43c7a3049e0fcfcf546b84440b5ad1cec38002d41f8c013bb77
MD5 44772e789e1f034f4bb03881dc3273ef
BLAKE2b-256 095c8d170fa8fb79226c17a24a62cbcdb69b957adf087cbb120fc8a21d53b7bf

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