Skip to main content

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_ID you 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livekit_plugins_minimax-1.2.3.post0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_plugins_minimax-1.2.3.post0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file livekit_plugins_minimax-1.2.3.post0.tar.gz.

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.2.3.post0.tar.gz
Algorithm Hash digest
SHA256 a9f77f0145d7c483ceeec64415734243e840bda12e6adf3714338ffa808a0a1b
MD5 2d99f40110efc0390f6758a93acdc47e
BLAKE2b-256 92df7e828bef414213e263f10a8680634ba84a91e88bbf7a7cab4155995e4cfe

See more details on using hashes here.

File details

Details for the file livekit_plugins_minimax-1.2.3.post0-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.2.3.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a19f983581a85744325f5f9ad3656ef4497b905bfe3130345f64d8f9ccb3ce9
MD5 a3de4b50d02201da12d8c04c7de5189a
BLAKE2b-256 ecf9509634fe7e18d3e1a64e329e0519dacc6312772b8db1297e43ccb8534f29

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