gingdev/iaskai 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gingdev/iaskai

最新稳定版本:1.3.8

Composer 安装命令:

composer require gingdev/iaskai

包简介

README 文档

README

The iAskAI PHP client is a simple and efficient way to interact with the IAskAI API, allowing developers to easily integrate AI-driven responses into their PHP applications.

Installation

composer require gingdev/iaskai

Usage

<?php

use Gingdev\IAskAI\Client;

use function Amp\ByteStream\buffer;

require __DIR__.'/vendor/autoload.php';

$client = Client::create();

$stream1 = $client->ask('Who is Goku?');
$stream2 = $client->ask('Who is Light Yagami?');

echo buffer($stream1);

// streaming response
foreach ($stream2 as $chunk) {
    echo $chunk;
}

Features

  • Asynchronous Support: The client is designed to work with asynchronous programming, making it suitable for applications that require non-blocking I/O operations.
  • Streaming Responses: The ability to handle streaming responses allows for real-time data processing and display, enhancing user experience.
  • Easy Integration: The client is easy to integrate into existing PHP applications, requiring minimal setup.

统计信息

  • 总下载量: 124
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-20