Skip to main content

PAI LLM

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.2.3.tar.gz (15.6 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.2.3-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pai_llm-0.2.3.tar.gz
Algorithm Hash digest
SHA256 4cc9456a99267eba190cc49df711c4fc1d570ba849efc88733c21fd9550f9eb0
MD5 f1697e011f4853b80471a82d23a7792d
BLAKE2b-256 2d382d91868514af240bb5b971049c852586f2a825d43f1ed4b4872572d0cab7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pai_llm-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for pai_llm-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3c8699fc4516ca9fd0f427690006367f4f57437f1250392f0ced51f5a451c0d1
MD5 ba843c5b12d90a9e2f3cf191f4035e45
BLAKE2b-256 f20210bcbdc9420d53b8b9f235155b7074ad4d8efc639511729bd65765d371b0

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