@micdrop/ai-sdk
Micdrop website | Documentation
AI SDK implementation for @micdrop/server.
Installation
Install AI SDK:
npm install @micdrop/ai-sdk
And install the provider you want to use, for example OpenAI:
npm install @ai-sdk/openai
AI SDK Agent
Usage
import { AiSdkAgent } from '@micdrop/ai-sdk'
import { MicdropServer } from '@micdrop/server'
import { openai } from '@ai-sdk/openai'
const agent = new AiSdkAgent({
model: openai('gpt-4o'),
systemPrompt: 'You are a helpful assistant',
autoEndCall: true,
autoSemanticTurn: true,
autoIgnoreUserNoise: true,
settings: {
temperature: 0.7,
maxTokens: 150,
},
})
new MicdropServer(socket, {
agent,
})
Supported Providers
The AI SDK Agent supports any provider compatible with the Vercel AI SDK:
- OpenAI:
openai('gpt-4o')
, openai('gpt-3.5-turbo')
- Anthropic:
anthropic('claude-3-5-sonnet-20241022')
- Google:
google('gemini-1.5-pro')
, google('gemini-1.5-flash')
- Mistral:
mistral('mistral-large-latest')
- And many more: See AI SDK Providers
Documentation
Read full documentation of the AI SDK integration for Micdrop on the website.
License
MIT
Author
Originally developed for Raconte.ai and open sourced by Lonestone (GitHub)