定制 qwen-php/qwen-laravel 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

qwen-php/qwen-laravel

最新稳定版本:1.0.0

Composer 安装命令:

composer require qwen-php/qwen-laravel

包简介

A seamless Laravel integration for the qwen PHP client, enabling effortless interaction with the qwen API in your Laravel applications.

README 文档

README

Laravel wrapper for qwen PHP client to seamless Alibaba qwen AI API integration with Laravel applications.

Table of Contents

Installation

You can install the package via composer:

composer require qwen-php/qwen-laravel

Publishing Configuration File

php artisan vendor:publish --tag=qwen

then add token to .env file

QWEN_API_KEY="your_api_key"

Usage

Basic Usage

use QwenClient;

$Qwen = app(QwenClient::class);
$response = $Qwen->query('Hello qwen, I am Laravel Framework , how are you Today ^_^ ?')->run();
print_r("qwen API response : " . $response);

Note: In easy mode, it will take defaults for all configs Check Default Values

Advanced Usage

use QwenClient;

$qwen = app(QwenClient::class);

// Another way, with customization
$response = $qwen
    ->query('Hello qwen, how are you ?', 'system')
    ->query('Hello qwen, my name is PHP ', 'user')
    ->withModel("qwen-vl-max")
    ->setTemperature(1.5)
    ->run();

print_r("qwen API response : " . $response);

Testing

Tests will come soon

Contributors ✨

Thanks to these wonderful people for contributing to this project! 💖

Omar AlAlwi
Omar AlAlwi

🏆 Creator

Want to contribute? Check out the contributing guidelines and submit a pull request! 🚀

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security

If you discover any security-related issues, please email omaralwi2010@gmail.com instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 2.86k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 0
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固