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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.2.3.tar.gz
Algorithm Hash digest
SHA256 5362e73211ba8681a4ca8a0ddf78388d4391167f6a9c5f5971de1348316cf59a
MD5 a631e233d3c2405e31e33733dc8b379d
BLAKE2b-256 3724fbfd88d4a9d932023525cbf1ff35c6fbd94ab540e4b739a3f67d8941b3ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for livekit_plugins_minimax-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bda1fa74db4fdd1115b4e458cf7e0b048f1b1e38494eab4765bad6744a760d8a
MD5 e3007352c5f391dedd8aaa197264e79f
BLAKE2b-256 64584b0fe510ccbe36f0e147b837e95c80f19dad31be97f689252c5d5cfe322d

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