papi-ai/mistral
最新稳定版本:v0.9.1
Composer 安装命令:
composer require papi-ai/mistral
包简介
Mistral provider for PapiAI
README 文档
README
Mistral provider for PapiAI - A simple but powerful PHP library for building AI agents.
Installation
composer require papi-ai/mistral
Usage
use PapiAI\Core\Agent; use PapiAI\Mistral\MistralProvider; $provider = new MistralProvider( apiKey: $_ENV['MISTRAL_API_KEY'], ); $agent = new Agent( provider: $provider, instructions: 'You are a helpful assistant.', ); $response = $agent->run('Hello!'); echo $response->text;
Available Models
MistralProvider::MODEL_MISTRAL_LARGE // 'mistral-large-latest' (default) MistralProvider::MODEL_MISTRAL_EMBED // 'mistral-embed' (embeddings)
Features
- Tool/function calling
- Streaming support
- Embeddings support
License
MIT
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-10