livekit-plugins-zhipu


Namelivekit-plugins-zhipu JSON
Version 1.2.0 PyPI version JSON
download
home_pageNone
SummaryLiveKit Agent Plugins for Zhipu
upload_time2025-07-23 02:54:01
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/0b/2b/707cd467f04df2a33aade29523304c6df5db66ba428a72d8883b731379dc/livekit_plugins_zhipu-1.2.0.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.0",
    "project_urls": null,
    "split_keywords": [
        "audio",
        " livekit",
        " realtime",
        " video",
        " webrtc"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7101934468bd23511124b20037629d452e21f82b0a345e3024b24b22c0bbf459",
                "md5": "600a97847e2ab20662fa1d5c14a732d1",
                "sha256": "07b91fa86f5e97972c2dc8d14d9432690d5a8c26e972693889d104c890146775"
            },
            "downloads": -1,
            "filename": "livekit_plugins_zhipu-1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "600a97847e2ab20662fa1d5c14a732d1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 7132,
            "upload_time": "2025-07-23T02:53:59",
            "upload_time_iso_8601": "2025-07-23T02:53:59.815043Z",
            "url": "https://files.pythonhosted.org/packages/71/01/934468bd23511124b20037629d452e21f82b0a345e3024b24b22c0bbf459/livekit_plugins_zhipu-1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0b2b707cd467f04df2a33aade29523304c6df5db66ba428a72d8883b731379dc",
                "md5": "b7e49577f27d68099a74e95d5a1cfbd9",
                "sha256": "1ad4b0f8f409970b27c4777ec31e88430b09321b91c46134dc9fee1223da7b22"
            },
            "downloads": -1,
            "filename": "livekit_plugins_zhipu-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b7e49577f27d68099a74e95d5a1cfbd9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 7027,
            "upload_time": "2025-07-23T02:54:01",
            "upload_time_iso_8601": "2025-07-23T02:54:01.131898Z",
            "url": "https://files.pythonhosted.org/packages/0b/2b/707cd467f04df2a33aade29523304c6df5db66ba428a72d8883b731379dc/livekit_plugins_zhipu-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-23 02:54:01",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "livekit-plugins-zhipu"
}
        
Elapsed time: 0.42770s