Skip to main content

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


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.7.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

pai_llm-0.1.7-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file pai_llm-0.1.7.tar.gz.

File metadata

  • Download URL: pai_llm-0.1.7.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for pai_llm-0.1.7.tar.gz
Algorithm Hash digest
SHA256 2cbcf0cf0a410f9bcef2eee0ebf9b124767785de0eb464c08821e93455ab811c
MD5 e92adf87662ea4517eba4574b32772c9
BLAKE2b-256 c287f2d837d58066fe3c76bd738be61f0ac4d27051a73e11eb5b884ae3e3fb36

See more details on using hashes here.

File details

Details for the file pai_llm-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: pai_llm-0.1.7-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

Hashes for pai_llm-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a09a27b78444d29434a60a06e51f058794f8d2c2dd5fb20689c5ba2408a7f7db
MD5 6df383715262801e3eedbcdaf6708dc7
BLAKE2b-256 4b65dd6d8f84211a98c1718865f111491b01ed9043b4531efd22ad7604b9c707

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