LiveKit Agent Plugins for Minimax(海螺AI)
Project description
LiveKit Plugins Minimax
Agent Framework plugin for services from minimax(海螺AI). currently supports: TTS, LLM
Installation
pip install livekit-plugins-minimax
Pre-requisites
- Minimax environment variable:
MINIMAX_API_KEY,MINIMAX_GROUP_IDyou can find here
Usage
This example shows how to use the minimax TTS plugin.
from livekit.agents import Agent, AgentSession, JobContext, cli, WorkerOptions
from livekit.plugins import minimax
from dotenv import load_dotenv
async def entry_point(ctx: JobContext):
await ctx.connect()
agent = Agent(instructions="You are a helpful assistant.")
session = AgentSession(
# you can find model and voice id at https://platform.minimaxi.com/document/T2A%20V2?key=66719005a427f0c8a5701643
stt=minimax.STT(model="xxx", voice_id="xxx"),
llm=minimax.LLM(model="MiniMax-Text-01")
)
await session.start(agent=agent, room=ctx.room)
if __name__ == "__main__":
load_dotenv()
cli.run_app(WorkerOptions(entrypoint_fnc=entry_point))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file livekit_plugins_minimax-1.2.9.tar.gz.
File metadata
- Download URL: livekit_plugins_minimax-1.2.9.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16645b6f33859b091c353361ae928e4a36df3eb9c7aea014723c3ca78539544e
|
|
| MD5 |
55e84b4ff156bc4ffc3d8eb22ae9f955
|
|
| BLAKE2b-256 |
5fcd082a6b88d226e0d6daf04aae97b605f0f290cbf58abde3a1ff98ba39aa5e
|
File details
Details for the file livekit_plugins_minimax-1.2.9-py3-none-any.whl.
File metadata
- Download URL: livekit_plugins_minimax-1.2.9-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cced2b7b1023263b2ec84a1ad0a46b721f1468897e2b4cb49405d998dc45bc3
|
|
| MD5 |
5a392b35fb540a5b8effd0939b8f36d7
|
|
| BLAKE2b-256 |
7b963c3b71f0f698d3e8bdf51622d26541e5aeb66aa16123e0f246a4437ea390
|