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.1.5.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.1.5.post0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.1.5.post0.tar.gz
Algorithm Hash digest
SHA256 41917bb5f497a5fc4147ffebd20bb3f72c663dc438818a09f32fa7604737c4d7
MD5 b8169015557ee316e012c9b27afbe276
BLAKE2b-256 762d056417a6de2a7b710ee51e020c5830dd6032e322e92c7b86201c2fb84029

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.1.5.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d944355b22bb6713108022becd6209fba3157a17ecf0f3b5c34e11faf3b40e9
MD5 ce2464a9b52599d310cc65aec771ef1c
BLAKE2b-256 23c38e115c4be6431d57cae03ef5ca743f4ec211be8638136c38237b92f264be

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