承接 fnadalrod/chatgpt-open-api-wrapper 相关项目开发

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

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

fnadalrod/chatgpt-open-api-wrapper

最新稳定版本:0.0.2

Composer 安装命令:

composer require fnadalrod/chatgpt-open-api-wrapper

包简介

A simple PHP wrapper for the ChatGPT API

README 文档

README

This project is a small PHP wrapper designed to interact with the ChatGPT API in a simple, maintainable, and extensible way. It is currently in a basic initial version, but already provides a functional starting point for integrating the API into PHP projects.

Features

  • Easy to use: Minimal configuration required to start sending prompts and receiving responses.
  • Customizable: Ability to define the HTTP client (e.g., Guzzle) and configure key API options.
  • Extensible: Designed structure to easily add future improvements and new features.

Installation

composer require fnadalrod/chatgpt-open-api-wrapper

Basic Usage

Here’s an example of how to use the wrapper to make a request to the ChatGPT model:

$config = [
    "http_client" => "guzzle",
    "api_key" => "****",
    "engine" => "gpt-3.5-turbo"
];

$openApiClient = new OpenApiClient($config);
$openApiResponse = $openApiClient->prompt('Is it working?');

echo $openApiResponse->getLastResponse();

Notes

  • API Keys: You will need a valid OpenAI API key to use this library.
  • Project Status: This wrapper is in its initial stage. New features and improvements are planned for future versions.
  • More documentation is expected in the future

Contributing

If you would like to contribute to the development, feel free to open an issue to report problems or discuss potential improvements in pull requests.

License

This project is available under the MIT License, you can use this code however you wish.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-12-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固