mirror of
https://github.com/mariocandela/beelzebub.git
synced 2025-07-01 18:47:26 -04:00
feat: Add ChatBot GPT-3 integration (#16)
* Added dependency go-resty * Configured Parser to read plugin configurations * Add example ssh with ChatGPT plugin * Add client ChatBot * Improve logging * Add integration with plugin OpenAIChatGPT * Improve readme with ChatBot Example * Add contributed ChatGPT question * Refactoring * Refactoring and improve unit test
This commit is contained in:
@ -28,6 +28,10 @@ type Tracing struct {
|
||||
RabbitMQURI string `yaml:"rabbitMQURI"`
|
||||
}
|
||||
|
||||
type Plugin struct {
|
||||
OpenAPIChatGPTSecretKey string `yaml:"openAPIChatGPTSecretKey"`
|
||||
}
|
||||
|
||||
type BeelzebubServiceConfiguration struct {
|
||||
ApiVersion string `yaml:"apiVersion"`
|
||||
Protocol string `yaml:"protocol"`
|
||||
@ -39,6 +43,7 @@ type BeelzebubServiceConfiguration struct {
|
||||
PasswordRegex string `yaml:"passwordRegex"`
|
||||
Description string `yaml:"description"`
|
||||
Banner string `yaml:"banner"`
|
||||
Plugin Plugin `yaml:"plugin"`
|
||||
}
|
||||
|
||||
type Command struct {
|
||||
@ -46,6 +51,7 @@ type Command struct {
|
||||
Handler string `yaml:"handler"`
|
||||
Headers []string `yaml:"headers"`
|
||||
StatusCode int `yaml:"statusCode"`
|
||||
Plugin string `yaml:"plugin"`
|
||||
}
|
||||
|
||||
type configurationsParser struct {
|
||||
|
Reference in New Issue
Block a user