axguowen/think-aichat

Simple AI Chat For ThinkPHP

Maintainers

Package info

github.com/axguowen/think-aichat

pkg:composer/axguowen/think-aichat

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-03-24 07:36:01 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);