承接 yunzhiyike/chat-gpt 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

yunzhiyike/chat-gpt

最新稳定版本:v1.0.4

Composer 安装命令:

composer require yunzhiyike/chat-gpt

包简介

This is an free chat-gpt sdk

README 文档

README

免费chatGPT接口

镜像仓库设置 composer config -g repo.packagist composer https://packagist.org

使用方法

<?php

declare(strict_types=1);
/**
 * This file is part of Yunzhiyike
 */

namespace Yunzhiyike\Test;

use PHPUnit\Framework\TestCase;
use Yunzhiyike\ChatGpt\ChatGptFactory;
use Yunzhiyike\ChatGpt\constans\GptV1Model;

/**
 * @internal
 * @coversNothing
 */
class TestA extends TestCase
{
    public function test()
    {
        $res = ChatGptFactory::getInstance()->gptV1->sendText('给我画一幅美丽的风景图', GptV1Model::GTP_4O, 'http://账号:密码@IP:端口');
        var_dump($res);
    }
}

1️⃣ 支持站

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-01