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 进行文本对话
Raw data
{
"_id": null,
"home_page": "https://gitee.com/torchW/tq_openai_utils",
"name": "tq-openai-utils",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.12,>=3.6",
"maintainer_email": null,
"keywords": "python, util, openai",
"author": "TripleQuiz",
"author_email": "triple_quiz@163.com",
"download_url": "https://files.pythonhosted.org/packages/08/24/a05ab0de6e1d13b156d346e709fd1d30dedde54a394c8ca75cd4e1068969/tq_openai_utils-0.0.1.post1.tar.gz",
"platform": null,
"description": "Util list:\r\n\r\n - count_tokens: GPT\u7cfb\u5217\u6a21\u578b\u4e0b\uff0c\u8ba1\u7b97\u6587\u672c\u4f7f\u7528\u7684token\r\n - calculate_total_tokens: GPT\u7cfb\u5217\u6a21\u578b\u4e0b\uff0c\u8ba1\u7b97\u591a\u8f6e\u5bf9\u8bdd\u4f7f\u7528\u7684token\r\n - CommonGPTModel: \u5e38\u89c1\u7684 GPT \u6a21\u578b\u4f7f\u7528\u540d\u79f0\r\n - os_environ_setting: API key \u7684\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\uff0c\u6216\u8005\u8fdb\u884c\u4ee3\u7406IP\u548c\u7aef\u53e3\u8bbe\u7f6e\uff08\u5fc5\u987b\u5148\u4e8e chat_with_llm \u8fdb\u884c\u8c03\u7528\uff1b\u6216\u8005\u81ea\u5df1\u624b\u52a8\u8fdb\u884c\u4e86 api key \u7684\u914d\u7f6e\uff0c\u5c31\u4e0d\u7528\u8c03\u7528\u4e86\uff09\r\n - chat_with_llm: \u4e0e LLM \u8fdb\u884c\u6587\u672c\u5bf9\u8bdd\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Some simple utils packaging OpenAI util.",
"version": "0.0.1.post1",
"project_urls": {
"Homepage": "https://gitee.com/torchW/tq_openai_utils"
},
"split_keywords": [
"python",
" util",
" openai"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "16f22c5bb02de543203a2165a8db2cc98bafbde3599119995bc024378e29dc50",
"md5": "1607a57ad97f4e59012b996505de561c",
"sha256": "18b6bb0c9653e914f709c98e213581ba14c42fc0056f71cce4b11b19b90343a2"
},
"downloads": -1,
"filename": "tq_openai_utils-0.0.1.post1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1607a57ad97f4e59012b996505de561c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.12,>=3.6",
"size": 5497,
"upload_time": "2025-07-17T11:29:43",
"upload_time_iso_8601": "2025-07-17T11:29:43.250882Z",
"url": "https://files.pythonhosted.org/packages/16/f2/2c5bb02de543203a2165a8db2cc98bafbde3599119995bc024378e29dc50/tq_openai_utils-0.0.1.post1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "0824a05ab0de6e1d13b156d346e709fd1d30dedde54a394c8ca75cd4e1068969",
"md5": "71b94e1d5c1d252ec686ec5bb74ea3a4",
"sha256": "675a525cad7d357ee71eb37f5d03027f48476e11a617c8ab5cb79c4ee89a5ccc"
},
"downloads": -1,
"filename": "tq_openai_utils-0.0.1.post1.tar.gz",
"has_sig": false,
"md5_digest": "71b94e1d5c1d252ec686ec5bb74ea3a4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.12,>=3.6",
"size": 4981,
"upload_time": "2025-07-17T11:29:44",
"upload_time_iso_8601": "2025-07-17T11:29:44.410227Z",
"url": "https://files.pythonhosted.org/packages/08/24/a05ab0de6e1d13b156d346e709fd1d30dedde54a394c8ca75cd4e1068969/tq_openai_utils-0.0.1.post1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-17 11:29:44",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "tq-openai-utils"
}