Skip to main content

Large Language Models Python API

Project description

Large Language Models Python API

Provider Model
Google gemini-2.5-flash
DeepSeek deepseek-chat deepseek-reasoner deepseek-coder
百度 ernie-lite-8k ernie-tiny-8k ernie-speed-8k ernie-speed-128k
阿里巴巴 qwen3-max qwen-plus qwen-flash qwen-turbo
讯飞 lite generalv3 pro-128k generalv3.5 max-32k 4.0Ultra
腾讯 hunyuan-lite hunyuan-standard hunyuan-standard-256K hunyuan-pro
智谱 glm-4-plus glm-4-air glm-4-long glm-4-flash

Install

pip install chatchat

Chat in the Terminal

$ chatchat run baidu ernie-lite-8k
user> http://github.com/JiauZhang/chatchat 这个网址是干啥的?
assistant> 这个网址 <http://github.com/JiauZhang/chatchat> 是一个指向GitHub上的一个开源项目的链接。

"chatchat" 看起来像是一个项目名称或别名,由 "JiauZhang" 创建并托管在GitHub上。
GitHub是一个流行的代码托管和协作平台,允许开发者存储、分享和协作开发代码。

要了解这个网址具体是干什么的,你可以访问该链接并查看项目详情。
通常,项目页面会包含项目的描述、代码、文档、问题跟踪等。通过查看这些信息,
你可以了解该项目的目的、功能、使用方法等。

请注意,由于这是一个开源项目,其具体内容和用途可能因项目而异。
如果你对特定项目或其用途有更多疑问,建议直接访问GitHub上的项目页面或查看相关文档和说明。
user> /exit

$ chatchat run google gemini-2.0-flash --proxy YOUR_PROXY
user> Introduce yourself briefly.
assistant> Hello! I am a large language model, trained by Google.
I am designed to provide information and complete tasks based on the prompts I receive.
I can generate text, translate languages, write different kinds of creative content,
and answer your questions in an informative way. How can I help you today?
user> /exit

Usage

# set YOUR secret keys
# tencent
chatchat config tencent.api_key=YOUR_API_KEY
# baidu
chatchat config baidu.api_key=YOUR_API_KEY
# list info of all supported providers
chatchat config --list

Refer to [examples]

Sponsor

公众号
AliPay.png
AliPay WeChatPay
AliPay.png WeChatPay.png

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

chatchat-0.4.2.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

chatchat-0.4.2-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

Details for the file chatchat-0.4.2.tar.gz.

File metadata

  • Download URL: chatchat-0.4.2.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for chatchat-0.4.2.tar.gz
Algorithm Hash digest
SHA256 f759a35bae5bbc9122dda66dd852e1c4b2a734634f5baa182f06a85737618048
MD5 b24b9e7f627f3d7c7f2f762521016ae0
BLAKE2b-256 e1a1c661bfacc31e4d07a9d934458bf6bf9cbbf7752f6973ad59388ed2100a70

See more details on using hashes here.

File details

Details for the file chatchat-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: chatchat-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 25.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for chatchat-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4739d7bae5d9a95cdddd3797d8c95891797081b0e0d488732cd2bd6d4d028d1e
MD5 de3afdce21e5ac2b7021722a67c4600a
BLAKE2b-256 2f277f2438eda222663a67bafcab708300639aa917ad27ca4014cc3d3b3b690f

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