这是一个方便快捷使用ai的包
Project description
ai_tools
这是一个基于Python的AI工具包
示例
from aitools_schuanhe.ai.openai import gpt_35_api
from aitools_schuanhe.config import *
from aitools_schuanhe.utils.request import set_openai_message, set_openai_system
config = Config(
openai_key="xxxx",
openai_url="https://xxxx",
)
messages = set_openai_system("你是AI助手,你的名字叫小爱,你的任务是帮助用户回答问题,")
messages = set_openai_message("你好啊,请问你叫什么名字?", messages)
print(gpt_35_api(messages, config))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aitools_schuanhe-0.1.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aitools_schuanhe-0.1.tar.gz.
File metadata
- Download URL: aitools_schuanhe-0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2ce773bff25bc60618dbc119e62b7aa03727fd3eb92a0858a3560a319484aa7
|
|
| MD5 |
64b5d2623ab41c727af392a624a89133
|
|
| BLAKE2b-256 |
dadc5fd3c8aea75b08cc8f4825e9829a4fbc9b3162753fc3ff45153168a02b5b
|
File details
Details for the file aitools_schuanhe-0.1-py3-none-any.whl.
File metadata
- Download URL: aitools_schuanhe-0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb493056752431824250260a2a768590fc4095584d540ee5a3fec8408e266b72
|
|
| MD5 |
6a72be6d6b12ce117bc9d70c80f0832e
|
|
| BLAKE2b-256 |
dad2c87c46b4432e6faeeeed33174f9814997ae6d82a88d2d770d63909862f4d
|