- Notifications
You must be signed in to change notification settings - Fork6
⚡️ supercharged community-maintained PHP API client that allows you to interact with Alibaba Qwen AI API
License
qwen-php/qwen-php-client
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
qwen PHP Client is a robust and community-driven PHP client library for seamless integration with theQwen API.
- Easy Integration: Simplifies interaction with the qwen API using a PHP client.
- Method Chaining: Supports fluent method chaining for building requests.
- Customizable: Allows setting different models, query roles, and streaming options.
- PSR-18 Compliance: Utilizes PSR-18 HTTP client for making API requests.
You can install the package via Composer:
composer require qwen-php/qwen-php-client
Ensure your project meets the following requirements:
- PHP 8.1 or later
useQwen\QwenClient;$apiKey ='your-api-key';$response = QwenClient::build($apiKey) ->query('Hello qwen, how are you today?') ->run();echo'API Response:'.$response;
Note: in easy mode it will take defaults for all configsCheck Default Values
useQwen\QwenClient;useQwen\Enums\Queries\QueryRoles;useQwen\Enums\Models;$apiKey ='your-api-key';$response = QwenClient::build($apiKey,'https://dashscope-intl.aliyuncs.com',500) ->query('System setup query','system') ->query('User input message','user') ->withModel(Models::QWEN_VL_MAX->value) ->run();echo'API Response:'.$response;
tests will come soon .
SeeCHANGELOG for recent changes.
Thanks to these wonderful people for contributing to this project! 💖
Omar AlAlwi 🏆 Creator |
Want to contribute? Check out thecontributing guidelines and submit a pull request! 🚀
If you discover any security-related issues, please email creator :omaralwi2010@gmail.com.
The MIT License (MIT). SeeLICENSE for more information.
About
⚡️ supercharged community-maintained PHP API client that allows you to interact with Alibaba Qwen AI API
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.
