openai/src/13ef84f4-25b0-43dd-a9f6-072...
Robot 783139129f
update 2024-04-07 13:20:18
2024-04-07 13:20:32 +02:00
..
README.md update 2023-10-10 10:16:07 2023-10-10 11:49:16 +02:00
code.php update 2023-07-04 08:26:01 2023-07-04 08:26:05 +02:00
code.power update 2023-07-04 08:26:01 2023-07-04 08:26:05 +02:00
settings.json update 2024-04-07 13:20:18 2024-04-07 13:20:32 +02:00

README.md

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

final class Uri (Details)

namespace: VDM\Joomla\Openai\Utilities

@startuml
class Uri << (F,LightGreen) >> #RoyalBlue {
  - string $version
  - string $url
  + __construct(string $url = 'https://api.openai.com', string $version = 'v1')
  + get(string $path) : JoomlaUri
  + api() : string
  - setUrl(string $url) : void
  - setVersion(string $version) : void
}

note right of Uri::__construct
  Constructor
example: https://api.openai.com

  since: 3.2.0
end note

note right of Uri::get
  Method to build and return a full request URL for the request.  This method will
add appropriate pagination details if necessary and also prepend the API url
to have a complete URL for the request.

  since: 3.2.0
  return: JoomlaUri
end note

note right of Uri::api
  Get the full API URL

  since: 3.2.0
  return: string
end note

note right of Uri::setUrl
  Set the URL of the API
example: https://api.openai.com

  since: 3.2.0
  return: void
end note

note right of Uri::setVersion
  Set the version of the API

  since: 3.2.0
  return: void
end note
 
@enduml

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

Build with Joomla Component Builder