Metadata-Version: 2.4
Name: tq_openai_utils
Version: 0.0.1
Summary: Some simple utils packaging OpenAI util.
Home-page: https://gitee.com/torchW/tq_openai_utils
Author: TripleQuiz
Author-email: triple_quiz@163.com
License: MIT
Keywords: python,util,openai
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Intended Audience :: Developers
Classifier: Operating System :: Microsoft :: Windows
Classifier: Natural Language :: Chinese (Simplified)
Requires-Python: >=3.6, <3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: openai
Requires-Dist: pydantic
Requires-Dist: tiktoken
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

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 进行文本对话
