Download the PHP package shcherbanich/symfony-console-gpt without Composer
On this page you can find all versions of the php package shcherbanich/symfony-console-gpt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shcherbanich/symfony-console-gpt
More information about shcherbanich/symfony-console-gpt
Files in shcherbanich/symfony-console-gpt
Package symfony-console-gpt
Short Description Use console application through regular chat with ConsoleGpt!
License MIT
Homepage https://github.com/shcherbanich/symfony-console-gpt
Informations about the package symfony-console-gpt
ConsoleGpt - Symfony GPT Console Assistant
This library allows seamless integration of a GPT-based chat interface with symfony/console
, enabling users to execute one command or a sequence of commands and manipulate them interactively via chat.
Have you dreamed of speaking the same language with your application? 😀
Try chatting with the demo app
Features
- Run Console Commands: Execute a single Symfony console command or a sequence of commands through an interactive chat.
- Processing the result: Dynamically change and modify the return result of console commands. If you want to display it in the form of a table, please do so. Translating into any language is not a problem.
- Easy to use: Integrate ConsoleGpt into your existing Symfony console application and start talking to it today!
Installation
-
Add the library to your project via Composer:
-
Ensure your project uses Symfony Console (
symfony/console
). -
Add the
Chat
command to your Symfony console application. - Set the environment variable
OPENAI_API_KEY
.
Usage
Basic Setup
The library provides a ready-to-use command: ConsoleGpt\Command\ChatCommand
. You can use it in your project in two ways:
-
Add the Command to Your Application
Include theChatCommand
in your console application: - Inherit from the Chat Application
In this case, the command will be available in your application.
Running the Chat Command
Run the chat
command in your console:
and enjoy the magic :)
All versions of symfony-console-gpt with dependencies
symfony/console Version ^7.1
openai-php/client Version ^0.10.3
symfony/http-client Version ^7.2
nyholm/psr7 Version ^1.8
guzzlehttp/guzzle Version ^7.9
symfony/process Version ^7.2
gioni06/gpt3-tokenizer Version ^1.2