No project description provided
Project description
PAI-LLM
Conversation
1. Conversation
- History Conversation
- save
- query
- rename
- delete
- search
2. Chat
- Single-round Chat
- Multi-round Chat
Chat
OpenAI Chat format
- 简单文本(字符串)
{
"role": "user",
"content": "Hello"
}
- 多模态内容(数组)
{
"role": "user",
"content": [
{
"type": "text",
"text": "这张图片是什么?"
},
{
"type": "image_url",
"image_url": {
"url": "https://example.com/image.jpg"
}
}
]
}
- 特殊字段
assistant角色
{
"role": "assistant",
"content": "我需要查询天气预报",
"tool_calls": [
{
"id": "call_id",
"type": "function",
"function": {
"name": "get_weather",
"arguments": "{\"location\":\"北京\",\"unit\":\"celsius\"}"
}
}
]
}
tool角色
{
"role": "tool",
"tool_call_id": "call_id",
"content": "{\"location\":\"北京\",\"unit\":\"celsius\",\"temperature\":25}"
}
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
pai_llm-0.1.8.tar.gz
(15.2 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
pai_llm-0.1.8-py3-none-any.whl
(22.6 kB
view details)
File details
Details for the file pai_llm-0.1.8.tar.gz.
File metadata
- Download URL: pai_llm-0.1.8.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
438eb26a79e7ad0434f5bae5215823b0d97eb644fc63d029d42253578fe12110
|
|
| MD5 |
7e763ab5e64df40ab8fc7ebc0219d3cb
|
|
| BLAKE2b-256 |
1528edb910ce733d8e989ccf73f9c53371f85595f00c83f5e2221615b955caa3
|
File details
Details for the file pai_llm-0.1.8-py3-none-any.whl.
File metadata
- Download URL: pai_llm-0.1.8-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2aec60d18976d07937cf93692730454b57c025bec107fa1289dcb0640a84b9f9
|
|
| MD5 |
b25d30b6a95328364f3785d89f022f33
|
|
| BLAKE2b-256 |
87e43b8acfb9caf447193c424c975b4ae293230b34df4250e11784c1d429df5c
|