modelflow-ai / openai-adapter
Integrates the openai ecosystem into modelflow-ai.
Installs: 1 048
Dependents: 2
Suggesters: 1
Security: 0
Stars: 4
Watchers: 0
Forks: 1
Open Issues: 1
Requires
- php: ^8.2
- nyholm/psr7: ^1.8
- openai-php/client: ^0.8
- symfony/http-client: ^6.4 || ^7.0
Requires (Dev)
- asapo/remove-vendor-plugin: ^0.1
- jangregor/phpstan-prophecy: ^1.0
- modelflow-ai/chat: ^0.2
- modelflow-ai/embeddings: ^0.2
- modelflow-ai/image: ^0.2
- modelflow-ai/prompt-template: ^0.2
- php-cs-fixer/shim: ^3.15
- phpspec/prophecy: ^1.0@dev
- phpspec/prophecy-phpunit: ^2.1@stable
- phpstan/extension-installer: ^1.2
- phpstan/phpstan: ^1.10, <1.10.55
- phpstan/phpstan-phpunit: ^1.3@stable
- phpunit/phpunit: ^10.3
- rector/rector: ^0.18.1
- symfony/console: ^7.1
- symfony/dotenv: ^7.1
Suggests
- modelflow-ai/chat: To use the chat-completion.
- modelflow-ai/embeddings: To use the embeddings.
- modelflow-ai/image: To use the image generation.
README
Modelflow AI
OpenAI Adapter
The adapter integrates OpenAI models into Modelflow AI.
Note: This is part of the
modelflow-ai
project create issues in the main repository.
Note: This project is heavily under development and any feedback is greatly appreciated.
Installation
To install the OpenAI Adapter package, you need to have PHP 8.2 or higher and Composer installed on your machine. Then, you can add the package to your project by running the following command:
composer require modelflow-ai/openai-adapter
Examples
Here are some examples of how you can use the OpenAI Adapter in your PHP applications. You can find more detailed examples in the examples directory.
Usage
Detailed usage instructions will be provided in the future. For now, you can refer to the source code and unit tests for usage examples.
Contributing
Contributions are welcome. Please open an issue or submit a pull request in the main repository at https://github.com/modelflow-ai/.github.
License
This project is licensed under the MIT License. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.