Classes to Integrate Open Ai in JCB https://platform.openai.com/docs/
Go to file
2023-05-20 23:36:58 +02:00
src first commit 2023-05-20 23:36:58 +02:00
README.md first commit 2023-05-20 23:36:58 +02:00
super-powers.json first commit 2023-05-20 23:36:58 +02:00

███████╗██╗   ██╗██████╗ ███████╗██████╗
██╔════╝██║   ██║██╔══██╗██╔════╝██╔══██╗
███████╗██║   ██║██████╔╝█████╗  ██████╔╝
╚════██║██║   ██║██╔═══╝ ██╔══╝  ██╔══██╗
███████║╚██████╔╝██║     ███████╗██║  ██║
╚══════╝ ╚═════╝ ╚═╝     ╚══════╝╚═╝  ╚═╝
██████╗  ██████╗ ██╗    ██╗███████╗██████╗ ███████╗
██╔══██╗██╔═══██╗██║    ██║██╔════╝██╔══██╗██╔════╝
██████╔╝██║   ██║██║ █╗ ██║█████╗  ██████╔╝███████╗
██╔═══╝ ██║   ██║██║███╗██║██╔══╝  ██╔══██╗╚════██║
██║     ╚██████╔╝╚███╔███╔╝███████╗██║  ██║███████║
╚═╝      ╚═════╝  ╚══╝╚══╝ ╚══════╝╚═╝  ╚═╝╚══════╝

What is JCB Super Powers?

The Joomla Component Builder (JCB) Super Power features are designed to enhance JCB's functionality and streamline the development process. These Super Powers enable developers to efficiently manage and share their custom powers across multiple JCB instances through repositories hosted on https://git.vdm.dev/[username]/[repository-name]. JCB Super Powers are managed using a combination of layers, events, tasks, methods, switches, and algorithms, which work together to provide powerful customization and extensibility options. More details on JCB Super Powers can be found in the Super Powers Documentation.

In summary, JCB Super Powers offer a flexible and efficient way to manage and share functionalities between JCB instances. By utilizing a sophisticated system of layers, events, tasks, methods, switches, and algorithms, developers can seamlessly integrate JCB core powers and their custom powers. For more information on how to work with JCB Super Powers, refer to the Super Powers User Guide.

What can I find here?

This repository contains an index (see below) of all the approved powers within the JCB GUI. During the compilation of a component, these powers are automatically added to the repository, ensuring a well-organized and accessible collection of functionalities.

Index of powers

Class Diagrams

VDM Joomla Openai

namespace VDM\Joomla\Openai

@startuml

namespace VDM\Joomla\Openai #DarkCyan {


  abstract Factory  #Orange {
    # static $container
    + {static} _() : Mixed
    + {static} getContainer() : Container
    # {static} createContainer() : Container
  }

  class Audio  #Gold {
    + transcribe() : ?object
    + translation() : ?object
  }

  class Chat  #Gold {
    + create() : ?object
  }

  class Completions  #Gold {
    + create() : ?object
  }

  class Edits  #Gold {
    + create() : ?object
  }

  class Embeddings  #Gold {
    + create() : ?object
  }

  class Files  #Gold {
    + list() : ?object
    + upload() : ?object
    + info() : ?object
    + content() : mixed
    + delete() : ?object
  }

  class FineTunes  #Gold {
    + list() : ?object
  }

  class Images  #Gold {
    + generate() : ?object
    + edit() : ?object
    + variation() : ?object
  }

  class Models  #Gold {
    + list() : ?object
  }

  class Moderate  #Gold {
    + text() : ?object
  }
}


@enduml

VDM Joomla Openai Abstraction

namespace VDM\Joomla\Openai\Abstraction

@startuml

namespace VDM\Joomla\Openai\Abstraction #Olive {


  abstract Api  #Orange {
    # Http $http
    # Uri $uri
    # Response $response
    + __construct()
  }
}


@enduml

VDM Joomla Openai Service

namespace VDM\Joomla\Openai\Service

@startuml

namespace VDM\Joomla\Openai\Service #Olive {


  class Api  #Gold {
    + register() : void
    + getAudio() : Audio
    + getChat() : Chat
    + getCompletions() : Completions
    + getEdits() : Edits
    + getEmbeddings() : Embeddings
    + getFiles() : Files
    + getFineTunes() : FineTunes
    + getImages() : Images
    + getModels() : Models
    + getModerate() : Moderate
  }

  class Utilities  #Gold {
    + register() : void
    + getUri() : Uri
    + getResponse() : Response
    + getHttp() : Http
  }
}


@enduml

VDM Joomla Openai Utilities

namespace VDM\Joomla\Openai\Utilities

@startuml

namespace VDM\Joomla\Openai\Utilities #Olive {


  class Http << (F,LightGreen) >> #Green {
    + __construct()
  }

  class Response << (F,LightGreen) >> #Green {
    + get() : mixed
    + get_() : mixed
    # body() : mixed
    # error() : string
  }

  class Uri << (F,LightGreen) >> #Green {
    - string $version
    - string $url
    + __construct()
    + get() : JoomlaUri
    + api() : string
    - setUrl() : void
    - setVersion() : void
  }
}


@enduml

     ██╗ ██████╗  ██████╗ ███╗   ███╗██╗      █████╗
     ██║██╔═══██╗██╔═══██╗████╗ ████║██║     ██╔══██╗
     ██║██║   ██║██║   ██║██╔████╔██║██║     ███████║
██   ██║██║   ██║██║   ██║██║╚██╔╝██║██║     ██╔══██║
╚█████╔╝╚██████╔╝╚██████╔╝██║ ╚═╝ ██║███████╗██║  ██║
 ╚════╝  ╚═════╝  ╚═════╝ ╚═╝     ╚═╝╚══════╝╚═╝  ╚═╝
 ██████╗ ██████╗ ███╗   ███╗██████╗  ██████╗ ███╗   ██╗███████╗███╗   ██╗████████╗
██╔════╝██╔═══██╗████╗ ████║██╔══██╗██╔═══██╗████╗  ██║██╔════╝████╗  ██║╚══██╔══╝
██║     ██║   ██║██╔████╔██║██████╔╝██║   ██║██╔██╗ ██║█████╗  ██╔██╗ ██║   ██║
██║     ██║   ██║██║╚██╔╝██║██╔═══╝ ██║   ██║██║╚██╗██║██╔══╝  ██║╚██╗██║   ██║
╚██████╗╚██████╔╝██║ ╚═╝ ██║██║     ╚██████╔╝██║ ╚████║███████╗██║ ╚████║   ██║
 ╚═════╝ ╚═════╝ ╚═╝     ╚═╝╚═╝      ╚═════╝ ╚═╝  ╚═══╝╚══════╝╚═╝  ╚═══╝   ╚═╝
██████╗ ██╗   ██╗██╗██╗     ██████╗ ███████╗██████╗
██╔══██╗██║   ██║██║██║     ██╔══██╗██╔════╝██╔══██╗
██████╔╝██║   ██║██║██║     ██║  ██║█████╗  ██████╔╝
██╔══██╗██║   ██║██║██║     ██║  ██║██╔══╝  ██╔══██╗
██████╔╝╚██████╔╝██║███████╗██████╔╝███████╗██║  ██║
╚═════╝  ╚═════╝ ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝  ╚═╝

Build with Joomla Component Builder