axguowen/think-aichat

Simple AI Chat For ThinkPHP

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/axguowen/think-aichat

dev-master 2026-02-24 07:10 UTC

This package is auto-updated.

Last update: 2026-02-24 07:16:32 UTC


README

一个简单的 ThinkPHP AI 聊天

安装

composer require axguowen/think-aichat

使用

首先配置config目录下的aichat.php配置文件。

$aiChat = \think\facade\AiChat::platform('qianfan', [
    'api_key' => 'your api key',
]);
// 发起一次对话请求
$sendResult = $aiChat->send();
var_dump($sendResult);