Skip to main content

Some simple utils packaging OpenAI util.

Project description

Util list:

  • count_tokens: GPT系列模型下,计算文本使用的token
  • calculate_total_tokens: GPT系列模型下,计算多轮对话使用的token
  • CommonGPTModel: 常见的 GPT 模型使用名称
  • os_environ_setting: API key 的环境变量设置,或者进行代理IP和端口设置(必须先于 chat_with_llm 进行调用;或者自己手动进行了 api key 的配置,就不用调用了)
  • chat_with_llm: 与 LLM 进行文本对话

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

tq_openai_utils-0.0.1.post1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

tq_openai_utils-0.0.1.post1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file tq_openai_utils-0.0.1.post1.tar.gz.

File metadata

  • Download URL: tq_openai_utils-0.0.1.post1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for tq_openai_utils-0.0.1.post1.tar.gz
Algorithm Hash digest
SHA256 675a525cad7d357ee71eb37f5d03027f48476e11a617c8ab5cb79c4ee89a5ccc
MD5 71b94e1d5c1d252ec686ec5bb74ea3a4
BLAKE2b-256 0824a05ab0de6e1d13b156d346e709fd1d30dedde54a394c8ca75cd4e1068969

See more details on using hashes here.

File details

Details for the file tq_openai_utils-0.0.1.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for tq_openai_utils-0.0.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 18b6bb0c9653e914f709c98e213581ba14c42fc0056f71cce4b11b19b90343a2
MD5 1607a57ad97f4e59012b996505de561c
BLAKE2b-256 16f22c5bb02de543203a2165a8db2cc98bafbde3599119995bc024378e29dc50

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