qwen-php/qwen-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

You can install the package via composer:

composer require qwen-php/qwen-laravel
php artisan vendor:publish --tag=qwen

then add token to .env file

QWEN_API_KEY="your_api_key"
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

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);

Tests will come soon

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! πŸš€

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

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

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

About

Laravel wrapper for the Qwen PHP client, offering an intuitive and efficient way to integrate and interact with Alibaba Qwen API in your Laravel applications.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages