adachsoft/ai-integration-moonshot
Composer 安装命令:
composer require adachsoft/ai-integration-moonshot
包简介
Moonshot provider for adachsoft/ai-integration tool-calling API
关键字:
README 文档
README
Moonshot provider for adachsoft/ai-integration tool-calling API.
Installation
composer require adachsoft/ai-integration-moonshot
Usage
use AdachSoft\AiIntegration\PublicApi\Builder\ToolCallingChatFacadeBuilder;
use AdachSoft\AiIntegrationMoonshot\MoonshotProvider;
$builder = ToolCallingChatFacadeBuilder::create();
MoonshotProvider::register($builder, getenv('MOONSHOT_API_KEY'));
$facade = $builder->build();
// Use $facade with your ToolCallingChatRequest DTO where you select the model id.
Production tests
Production tests use environment variables loaded from system env and .env files via vlucas/phpdotenv.
Environment variables:
MOONSHOT_API_KEY- required Moonshot API key.MOONSHOT_MODEL- optional non-thinking model override (default:moonshot-v1-8k).MOONSHOT_THINKING_MODEL- optional thinking model override (default:kimi-k2-thinking).
Run production tests:
vendor/bin/phpunit --group production tests/Production
For thinking models, pass reasoning_content from the previous assistant response using metadata['reasoning_content'] when building the next assistant message. The library forwards this value in payload messages and does not persist conversation history by itself.
adachsoft/ai-integration-moonshot 适用场景与选型建议
adachsoft/ai-integration-moonshot 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ai」 「moonshot」 「ai-integration」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 adachsoft/ai-integration-moonshot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 adachsoft/ai-integration-moonshot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 adachsoft/ai-integration-moonshot 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Automagically generate conventional git commit message with AI. - 使用 AI 自动生成约定式 git 提交信息。
robust and community-driven PHP SDK library for seamless integration with the qwen AI API, offering efficient access to advanced AI and data processing capabilities
Moonshot AI (Kimi K2) provider for the official Laravel AI SDK.
Gemini SPI provider for adachsoft/ai-integration: tool-calling chat integration with Google Gemini 2.5 and 3.x models.
Anthropic Claude tool-calling SPI adapter for adachsoft/ai-integration.
AI-powered assistant for Laravel applications
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-23