livekit-plugins-dify


Namelivekit-plugins-dify JSON
Version 0.3.0 PyPI version JSON
download
home_pagehttps://github.com/livekit/agents
SummaryDify plugin for LiveKit Agents
upload_time2024-10-29 02:52:36
maintainerNone
docs_urlNone
authorsorphwer@riino.site
requires_python>=3.9.0
licenseApache-2.0
keywords webrtc realtime audio video livekit dify
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LiveKit Plugins Dify

LLM inference implemention from Dify API

Usage:
```
    agent = VoicePipelineAgent(
        vad=ctx.proc.userdata["vad"],
        stt=deepgram.STT(model=dg_model),
        llm=dify.LLM(
            base_url="Your dify API",
            api_key="Your Dify App API Key",
        ),
        tts=openai.TTS(),
        chat_ctx=initial_ctx,
    )
```

Notes: Do not use `initial_ctx = llm.ChatContext().append` to add system prompt or context. Implement these in your Dify.

Only 'Chatflow' is supported.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/livekit/agents",
    "name": "livekit-plugins-dify",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9.0",
    "maintainer_email": null,
    "keywords": "webrtc, realtime, audio, video, livekit, dify",
    "author": "sorphwer@riino.site",
    "author_email": "sorphwer@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/49/5a/6012015f5d80df1ba7d4f5dc7cbb3413bddf74b42748af37bd1d2f61b60a/livekit_plugins_dify-0.3.0.tar.gz",
    "platform": null,
    "description": "# LiveKit Plugins Dify\r\n\r\nLLM inference implemention from Dify API\r\n\r\nUsage:\r\n```\r\n    agent = VoicePipelineAgent(\r\n        vad=ctx.proc.userdata[\"vad\"],\r\n        stt=deepgram.STT(model=dg_model),\r\n        llm=dify.LLM(\r\n            base_url=\"Your dify API\",\r\n            api_key=\"Your Dify App API Key\",\r\n        ),\r\n        tts=openai.TTS(),\r\n        chat_ctx=initial_ctx,\r\n    )\r\n```\r\n\r\nNotes: Do not use `initial_ctx = llm.ChatContext().append` to add system prompt or context. Implement these in your Dify.\r\n\r\nOnly 'Chatflow' is supported.\r\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Dify plugin for LiveKit Agents",
    "version": "0.3.0",
    "project_urls": {
        "Documentation": "https://docs.livekit.io",
        "Homepage": "https://github.com/livekit/agents",
        "Source": "https://github.com/livekit/agents",
        "Website": "https://livekit.io/"
    },
    "split_keywords": [
        "webrtc",
        " realtime",
        " audio",
        " video",
        " livekit",
        " dify"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "495a6012015f5d80df1ba7d4f5dc7cbb3413bddf74b42748af37bd1d2f61b60a",
                "md5": "c08443774125058ab2c759aca9165bfc",
                "sha256": "99590517828f2855c973ba423e530198d41e328982f77e30064d802a64f56fdd"
            },
            "downloads": -1,
            "filename": "livekit_plugins_dify-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c08443774125058ab2c759aca9165bfc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9.0",
            "size": 5220,
            "upload_time": "2024-10-29T02:52:36",
            "upload_time_iso_8601": "2024-10-29T02:52:36.395875Z",
            "url": "https://files.pythonhosted.org/packages/49/5a/6012015f5d80df1ba7d4f5dc7cbb3413bddf74b42748af37bd1d2f61b60a/livekit_plugins_dify-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-29 02:52:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "livekit",
    "github_project": "agents",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "livekit-plugins-dify"
}
        
Elapsed time: 1.74455s