livekit-plugins-zhipu


Namelivekit-plugins-zhipu JSON
Version 1.2.8 PyPI version JSON
download
home_pageNone
SummaryLiveKit Agent Plugins for Zhipu
upload_time2025-09-04 07:48:40
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords audio livekit realtime video webrtc
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LiveKit Plugins Zhipu(智谱)

Agent Framework plugin for services from Zhipu. Currently supports [LLM](https://bigmodel.cn/dev/api/normal-model/glm-4)

## Installation
```python
pip install livekit-plugins-zhipu
```

## Pre-requisites

- Zhipu LLM environment variable: `ZHIPU_LLM_API_KEY`

## Usage


This example shows how to use the Zhipu plugin to create a voice agent.

```python
from livekit.agents import Agent, AgentSession, JobContext, cli, WorkerOptions
from livekit.plugins import zhipu
from dotenv import load_dotenv


async def entry_point(ctx: JobContext):
    
    await ctx.connect()
    
    agent = Agent(instructions="You are a helpful assistant.")

    session = AgentSession(
        llm=zhipu.LLM(model="glm-4-flashx"),
    )
    
    await session.start(agent=agent, room=ctx.room)
    
    await session.generate_reply()

if __name__ == "__main__":
    load_dotenv()
    cli.run_app(WorkerOptions(entrypoint_fnc=entry_point))
```


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "livekit-plugins-zhipu",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "audio, livekit, realtime, video, webrtc",
    "author": null,
    "author_email": "wangmengdi <790990241@qq.com>",
    "download_url": "https://files.pythonhosted.org/packages/56/5a/b54dcd7ecc8fe2375f06a49dc0bb71c130ad65ddda1e1b05e3d71493edfe/livekit_plugins_zhipu-1.2.8.tar.gz",
    "platform": null,
    "description": "# LiveKit Plugins Zhipu(\u667a\u8c31)\n\nAgent Framework plugin for services from Zhipu. Currently supports [LLM](https://bigmodel.cn/dev/api/normal-model/glm-4)\n\n## Installation\n```python\npip install livekit-plugins-zhipu\n```\n\n## Pre-requisites\n\n- Zhipu LLM environment variable: `ZHIPU_LLM_API_KEY`\n\n## Usage\n\n\nThis example shows how to use the Zhipu plugin to create a voice agent.\n\n```python\nfrom livekit.agents import Agent, AgentSession, JobContext, cli, WorkerOptions\nfrom livekit.plugins import zhipu\nfrom dotenv import load_dotenv\n\n\nasync def entry_point(ctx: JobContext):\n    \n    await ctx.connect()\n    \n    agent = Agent(instructions=\"You are a helpful assistant.\")\n\n    session = AgentSession(\n        llm=zhipu.LLM(model=\"glm-4-flashx\"),\n    )\n    \n    await session.start(agent=agent, room=ctx.room)\n    \n    await session.generate_reply()\n\nif __name__ == \"__main__\":\n    load_dotenv()\n    cli.run_app(WorkerOptions(entrypoint_fnc=entry_point))\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "LiveKit Agent Plugins for Zhipu",
    "version": "1.2.8",
    "project_urls": null,
    "split_keywords": [
        "audio",
        " livekit",
        " realtime",
        " video",
        " webrtc"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "54d4386d637b9c8d592b3a6fc9fd6cdd2c0210dc05be0e942266f0dec1aba7df",
                "md5": "bdd5012b7c58a5cf1ad8abd4caaf6055",
                "sha256": "8ca38f2ef67deda0326f47398c692980198b89a4d10304afeee1480ef046ac97"
            },
            "downloads": -1,
            "filename": "livekit_plugins_zhipu-1.2.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bdd5012b7c58a5cf1ad8abd4caaf6055",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 7134,
            "upload_time": "2025-09-04T07:48:39",
            "upload_time_iso_8601": "2025-09-04T07:48:39.093685Z",
            "url": "https://files.pythonhosted.org/packages/54/d4/386d637b9c8d592b3a6fc9fd6cdd2c0210dc05be0e942266f0dec1aba7df/livekit_plugins_zhipu-1.2.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "565ab54dcd7ecc8fe2375f06a49dc0bb71c130ad65ddda1e1b05e3d71493edfe",
                "md5": "88e37098097b4148c14c5cca95ae7d32",
                "sha256": "2bb1efb41d30836c4eefa45e23722f645febe9c2ceb8ccf17b33ea2a1e9b15be"
            },
            "downloads": -1,
            "filename": "livekit_plugins_zhipu-1.2.8.tar.gz",
            "has_sig": false,
            "md5_digest": "88e37098097b4148c14c5cca95ae7d32",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 7030,
            "upload_time": "2025-09-04T07:48:40",
            "upload_time_iso_8601": "2025-09-04T07:48:40.511134Z",
            "url": "https://files.pythonhosted.org/packages/56/5a/b54dcd7ecc8fe2375f06a49dc0bb71c130ad65ddda1e1b05e3d71493edfe/livekit_plugins_zhipu-1.2.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-04 07:48:40",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "livekit-plugins-zhipu"
}
        
Elapsed time: 0.88944s