The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
import React from "react";
import { MessageType } from "@/components/chat_ui/types";
interface AudioRendererProps {
message: MessageType;
}
const AudioRenderer: React.FC<AudioRendererProps> = ({ message }) => {
// Check if this message contains audio
if (!message.isAudio || typeof message.content !== "string") {
return null;
}
return (
<div className="mb-2">
<audio controls src={message.content} className="max-w-full" style={{ maxWidth: "500px" }}>
Your browser does not support the audio element.
</audio>
</div>
);
};
export default AudioRenderer;