update 2023-05-22 15:15:08

This commit is contained in:
Llewellyn van der Merwe 2023-05-22 15:15:08 +02:00
parent a66ce651f0
commit 1ff6ddda91
Signed by untrusted user: Llewellyn
GPG Key ID: A9201372263741E7
2 changed files with 97 additions and 255 deletions

158
README.md
View File

@ -49,164 +49,6 @@ This repository contains an index (see below) of all the approved powers within
- **final class Response** | [Details](src/c464393e-7606-406e-8463-a86774590966) | [Code](src/c464393e-7606-406e-8463-a86774590966/code.php) | [Settings](src/c464393e-7606-406e-8463-a86774590966/settings.json) | Super__c464393e_7606_406e_8463_a86774590966__Power - **final class Response** | [Details](src/c464393e-7606-406e-8463-a86774590966) | [Code](src/c464393e-7606-406e-8463-a86774590966/code.php) | [Settings](src/c464393e-7606-406e-8463-a86774590966/settings.json) | Super__c464393e_7606_406e_8463_a86774590966__Power
- **final class Uri** | [Details](src/13ef84f4-25b0-43dd-a9f6-0722abf220c1) | [Code](src/13ef84f4-25b0-43dd-a9f6-0722abf220c1/code.php) | [Settings](src/13ef84f4-25b0-43dd-a9f6-0722abf220c1/settings.json) | Super__13ef84f4_25b0_43dd_a9f6_0722abf220c1__Power - **final class Uri** | [Details](src/13ef84f4-25b0-43dd-a9f6-0722abf220c1) | [Code](src/13ef84f4-25b0-43dd-a9f6-0722abf220c1/code.php) | [Settings](src/13ef84f4-25b0-43dd-a9f6-0722abf220c1/settings.json) | Super__13ef84f4_25b0_43dd_a9f6_0722abf220c1__Power
# Class Diagrams
## VDM Joomla Openai
> namespace VDM\Joomla\Openai
```uml
@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
```uml
@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
```uml
@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
```uml
@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
```
--- ---
``` ```
██╗ ██████╗ ██████╗ ███╗ ███╗██╗ █████╗ ██╗ ██████╗ ██████╗ ███╗ ███╗██╗ █████╗

View File

@ -1,14 +1,36 @@
{ {
"4c58b254-aea5-40aa-b54d-9586a1690451": { "07858e1f-5698-4227-8941-03dc93557938": {
"name": "Http", "name": "Utilities",
"type": "final class", "type": "class",
"namespace": "VDM\\Joomla\\Openai\\Utilities", "namespace": "VDM\\Joomla\\Openai\\Service",
"code": "src\/4c58b254-aea5-40aa-b54d-9586a1690451\/code.php", "code": "src\/07858e1f-5698-4227-8941-03dc93557938\/code.php",
"power": "src\/4c58b254-aea5-40aa-b54d-9586a1690451\/code.power", "power": "src\/07858e1f-5698-4227-8941-03dc93557938\/code.power",
"settings": "src\/4c58b254-aea5-40aa-b54d-9586a1690451\/settings.json", "settings": "src\/07858e1f-5698-4227-8941-03dc93557938\/settings.json",
"path": "src\/4c58b254-aea5-40aa-b54d-9586a1690451", "path": "src\/07858e1f-5698-4227-8941-03dc93557938",
"spk": "Super__4c58b254_aea5_40aa_b54d_9586a1690451__Power", "spk": "Super__07858e1f_5698_4227_8941_03dc93557938__Power",
"guid": "4c58b254-aea5-40aa-b54d-9586a1690451" "guid": "07858e1f-5698-4227-8941-03dc93557938"
},
"08abd2df-1406-4939-a1a6-94d2fce3f043": {
"name": "Models",
"type": "class",
"namespace": "VDM\\Joomla\\Openai",
"code": "src\/08abd2df-1406-4939-a1a6-94d2fce3f043\/code.php",
"power": "src\/08abd2df-1406-4939-a1a6-94d2fce3f043\/code.power",
"settings": "src\/08abd2df-1406-4939-a1a6-94d2fce3f043\/settings.json",
"path": "src\/08abd2df-1406-4939-a1a6-94d2fce3f043",
"spk": "Super__08abd2df_1406_4939_a1a6_94d2fce3f043__Power",
"guid": "08abd2df-1406-4939-a1a6-94d2fce3f043"
},
"0e61da13-6429-426d-a6f9-f5723cd3b7b1": {
"name": "FineTunes",
"type": "class",
"namespace": "VDM\\Joomla\\Openai",
"code": "src\/0e61da13-6429-426d-a6f9-f5723cd3b7b1\/code.php",
"power": "src\/0e61da13-6429-426d-a6f9-f5723cd3b7b1\/code.power",
"settings": "src\/0e61da13-6429-426d-a6f9-f5723cd3b7b1\/settings.json",
"path": "src\/0e61da13-6429-426d-a6f9-f5723cd3b7b1",
"spk": "Super__0e61da13_6429_426d_a6f9_f5723cd3b7b1__Power",
"guid": "0e61da13-6429-426d-a6f9-f5723cd3b7b1"
}, },
"13ef84f4-25b0-43dd-a9f6-0722abf220c1": { "13ef84f4-25b0-43dd-a9f6-0722abf220c1": {
"name": "Uri", "name": "Uri",
@ -21,16 +43,27 @@
"spk": "Super__13ef84f4_25b0_43dd_a9f6_0722abf220c1__Power", "spk": "Super__13ef84f4_25b0_43dd_a9f6_0722abf220c1__Power",
"guid": "13ef84f4-25b0-43dd-a9f6-0722abf220c1" "guid": "13ef84f4-25b0-43dd-a9f6-0722abf220c1"
}, },
"c464393e-7606-406e-8463-a86774590966": { "34f2c249-64a7-4229-9592-77e58f6e994f": {
"name": "Response", "name": "Moderate",
"type": "class",
"namespace": "VDM\\Joomla\\Openai",
"code": "src\/34f2c249-64a7-4229-9592-77e58f6e994f\/code.php",
"power": "src\/34f2c249-64a7-4229-9592-77e58f6e994f\/code.power",
"settings": "src\/34f2c249-64a7-4229-9592-77e58f6e994f\/settings.json",
"path": "src\/34f2c249-64a7-4229-9592-77e58f6e994f",
"spk": "Super__34f2c249_64a7_4229_9592_77e58f6e994f__Power",
"guid": "34f2c249-64a7-4229-9592-77e58f6e994f"
},
"4c58b254-aea5-40aa-b54d-9586a1690451": {
"name": "Http",
"type": "final class", "type": "final class",
"namespace": "VDM\\Joomla\\Openai\\Utilities", "namespace": "VDM\\Joomla\\Openai\\Utilities",
"code": "src\/c464393e-7606-406e-8463-a86774590966\/code.php", "code": "src\/4c58b254-aea5-40aa-b54d-9586a1690451\/code.php",
"power": "src\/c464393e-7606-406e-8463-a86774590966\/code.power", "power": "src\/4c58b254-aea5-40aa-b54d-9586a1690451\/code.power",
"settings": "src\/c464393e-7606-406e-8463-a86774590966\/settings.json", "settings": "src\/4c58b254-aea5-40aa-b54d-9586a1690451\/settings.json",
"path": "src\/c464393e-7606-406e-8463-a86774590966", "path": "src\/4c58b254-aea5-40aa-b54d-9586a1690451",
"spk": "Super__c464393e_7606_406e_8463_a86774590966__Power", "spk": "Super__4c58b254_aea5_40aa_b54d_9586a1690451__Power",
"guid": "c464393e-7606-406e-8463-a86774590966" "guid": "4c58b254-aea5-40aa-b54d-9586a1690451"
}, },
"585de711-2784-4f89-90bf-94a8a63366f1": { "585de711-2784-4f89-90bf-94a8a63366f1": {
"name": "Api", "name": "Api",
@ -43,27 +76,16 @@
"spk": "Super__585de711_2784_4f89_90bf_94a8a63366f1__Power", "spk": "Super__585de711_2784_4f89_90bf_94a8a63366f1__Power",
"guid": "585de711-2784-4f89-90bf-94a8a63366f1" "guid": "585de711-2784-4f89-90bf-94a8a63366f1"
}, },
"d76b2e22-c8dd-44b1-86b5-822768b317a3": { "65dd022b-8f3a-46be-8930-0cae74b9834b": {
"name": "Audio", "name": "Files",
"type": "class", "type": "class",
"namespace": "VDM\\Joomla\\Openai", "namespace": "VDM\\Joomla\\Openai",
"code": "src\/d76b2e22-c8dd-44b1-86b5-822768b317a3\/code.php", "code": "src\/65dd022b-8f3a-46be-8930-0cae74b9834b\/code.php",
"power": "src\/d76b2e22-c8dd-44b1-86b5-822768b317a3\/code.power", "power": "src\/65dd022b-8f3a-46be-8930-0cae74b9834b\/code.power",
"settings": "src\/d76b2e22-c8dd-44b1-86b5-822768b317a3\/settings.json", "settings": "src\/65dd022b-8f3a-46be-8930-0cae74b9834b\/settings.json",
"path": "src\/d76b2e22-c8dd-44b1-86b5-822768b317a3", "path": "src\/65dd022b-8f3a-46be-8930-0cae74b9834b",
"spk": "Super__d76b2e22_c8dd_44b1_86b5_822768b317a3__Power", "spk": "Super__65dd022b_8f3a_46be_8930_0cae74b9834b__Power",
"guid": "d76b2e22-c8dd-44b1-86b5-822768b317a3" "guid": "65dd022b-8f3a-46be-8930-0cae74b9834b"
},
"c54c92da-2dd7-4136-81c9-1785f2fa0af5": {
"name": "Chat",
"type": "class",
"namespace": "VDM\\Joomla\\Openai",
"code": "src\/c54c92da-2dd7-4136-81c9-1785f2fa0af5\/code.php",
"power": "src\/c54c92da-2dd7-4136-81c9-1785f2fa0af5\/code.power",
"settings": "src\/c54c92da-2dd7-4136-81c9-1785f2fa0af5\/settings.json",
"path": "src\/c54c92da-2dd7-4136-81c9-1785f2fa0af5",
"spk": "Super__c54c92da_2dd7_4136_81c9_1785f2fa0af5__Power",
"guid": "c54c92da-2dd7-4136-81c9-1785f2fa0af5"
}, },
"796cca70-2577-4f8f-9a05-ac37db1f2f02": { "796cca70-2577-4f8f-9a05-ac37db1f2f02": {
"name": "Completions", "name": "Completions",
@ -87,39 +109,6 @@
"spk": "Super__98e59bdf_81a2_41ef_a3a6_6a88a7cc53c8__Power", "spk": "Super__98e59bdf_81a2_41ef_a3a6_6a88a7cc53c8__Power",
"guid": "98e59bdf-81a2-41ef-a3a6-6a88a7cc53c8" "guid": "98e59bdf-81a2-41ef-a3a6-6a88a7cc53c8"
}, },
"df141f03-393f-4fa3-a568-8b65f7358b02": {
"name": "Embeddings",
"type": "class",
"namespace": "VDM\\Joomla\\Openai",
"code": "src\/df141f03-393f-4fa3-a568-8b65f7358b02\/code.php",
"power": "src\/df141f03-393f-4fa3-a568-8b65f7358b02\/code.power",
"settings": "src\/df141f03-393f-4fa3-a568-8b65f7358b02\/settings.json",
"path": "src\/df141f03-393f-4fa3-a568-8b65f7358b02",
"spk": "Super__df141f03_393f_4fa3_a568_8b65f7358b02__Power",
"guid": "df141f03-393f-4fa3-a568-8b65f7358b02"
},
"65dd022b-8f3a-46be-8930-0cae74b9834b": {
"name": "Files",
"type": "class",
"namespace": "VDM\\Joomla\\Openai",
"code": "src\/65dd022b-8f3a-46be-8930-0cae74b9834b\/code.php",
"power": "src\/65dd022b-8f3a-46be-8930-0cae74b9834b\/code.power",
"settings": "src\/65dd022b-8f3a-46be-8930-0cae74b9834b\/settings.json",
"path": "src\/65dd022b-8f3a-46be-8930-0cae74b9834b",
"spk": "Super__65dd022b_8f3a_46be_8930_0cae74b9834b__Power",
"guid": "65dd022b-8f3a-46be-8930-0cae74b9834b"
},
"0e61da13-6429-426d-a6f9-f5723cd3b7b1": {
"name": "FineTunes",
"type": "class",
"namespace": "VDM\\Joomla\\Openai",
"code": "src\/0e61da13-6429-426d-a6f9-f5723cd3b7b1\/code.php",
"power": "src\/0e61da13-6429-426d-a6f9-f5723cd3b7b1\/code.power",
"settings": "src\/0e61da13-6429-426d-a6f9-f5723cd3b7b1\/settings.json",
"path": "src\/0e61da13-6429-426d-a6f9-f5723cd3b7b1",
"spk": "Super__0e61da13_6429_426d_a6f9_f5723cd3b7b1__Power",
"guid": "0e61da13-6429-426d-a6f9-f5723cd3b7b1"
},
"bb8973c1-261f-4b55-8f9b-9ee98843fced": { "bb8973c1-261f-4b55-8f9b-9ee98843fced": {
"name": "Images", "name": "Images",
"type": "class", "type": "class",
@ -131,27 +120,27 @@
"spk": "Super__bb8973c1_261f_4b55_8f9b_9ee98843fced__Power", "spk": "Super__bb8973c1_261f_4b55_8f9b_9ee98843fced__Power",
"guid": "bb8973c1-261f-4b55-8f9b-9ee98843fced" "guid": "bb8973c1-261f-4b55-8f9b-9ee98843fced"
}, },
"08abd2df-1406-4939-a1a6-94d2fce3f043": { "c464393e-7606-406e-8463-a86774590966": {
"name": "Models", "name": "Response",
"type": "class", "type": "final class",
"namespace": "VDM\\Joomla\\Openai", "namespace": "VDM\\Joomla\\Openai\\Utilities",
"code": "src\/08abd2df-1406-4939-a1a6-94d2fce3f043\/code.php", "code": "src\/c464393e-7606-406e-8463-a86774590966\/code.php",
"power": "src\/08abd2df-1406-4939-a1a6-94d2fce3f043\/code.power", "power": "src\/c464393e-7606-406e-8463-a86774590966\/code.power",
"settings": "src\/08abd2df-1406-4939-a1a6-94d2fce3f043\/settings.json", "settings": "src\/c464393e-7606-406e-8463-a86774590966\/settings.json",
"path": "src\/08abd2df-1406-4939-a1a6-94d2fce3f043", "path": "src\/c464393e-7606-406e-8463-a86774590966",
"spk": "Super__08abd2df_1406_4939_a1a6_94d2fce3f043__Power", "spk": "Super__c464393e_7606_406e_8463_a86774590966__Power",
"guid": "08abd2df-1406-4939-a1a6-94d2fce3f043" "guid": "c464393e-7606-406e-8463-a86774590966"
}, },
"34f2c249-64a7-4229-9592-77e58f6e994f": { "c54c92da-2dd7-4136-81c9-1785f2fa0af5": {
"name": "Moderate", "name": "Chat",
"type": "class", "type": "class",
"namespace": "VDM\\Joomla\\Openai", "namespace": "VDM\\Joomla\\Openai",
"code": "src\/34f2c249-64a7-4229-9592-77e58f6e994f\/code.php", "code": "src\/c54c92da-2dd7-4136-81c9-1785f2fa0af5\/code.php",
"power": "src\/34f2c249-64a7-4229-9592-77e58f6e994f\/code.power", "power": "src\/c54c92da-2dd7-4136-81c9-1785f2fa0af5\/code.power",
"settings": "src\/34f2c249-64a7-4229-9592-77e58f6e994f\/settings.json", "settings": "src\/c54c92da-2dd7-4136-81c9-1785f2fa0af5\/settings.json",
"path": "src\/34f2c249-64a7-4229-9592-77e58f6e994f", "path": "src\/c54c92da-2dd7-4136-81c9-1785f2fa0af5",
"spk": "Super__34f2c249_64a7_4229_9592_77e58f6e994f__Power", "spk": "Super__c54c92da_2dd7_4136_81c9_1785f2fa0af5__Power",
"guid": "34f2c249-64a7-4229-9592-77e58f6e994f" "guid": "c54c92da-2dd7-4136-81c9-1785f2fa0af5"
}, },
"ccf3141a-929d-4466-b122-9ace2eea8d70": { "ccf3141a-929d-4466-b122-9ace2eea8d70": {
"name": "Api", "name": "Api",
@ -164,16 +153,16 @@
"spk": "Super__ccf3141a_929d_4466_b122_9ace2eea8d70__Power", "spk": "Super__ccf3141a_929d_4466_b122_9ace2eea8d70__Power",
"guid": "ccf3141a-929d-4466-b122-9ace2eea8d70" "guid": "ccf3141a-929d-4466-b122-9ace2eea8d70"
}, },
"07858e1f-5698-4227-8941-03dc93557938": { "d76b2e22-c8dd-44b1-86b5-822768b317a3": {
"name": "Utilities", "name": "Audio",
"type": "class", "type": "class",
"namespace": "VDM\\Joomla\\Openai\\Service", "namespace": "VDM\\Joomla\\Openai",
"code": "src\/07858e1f-5698-4227-8941-03dc93557938\/code.php", "code": "src\/d76b2e22-c8dd-44b1-86b5-822768b317a3\/code.php",
"power": "src\/07858e1f-5698-4227-8941-03dc93557938\/code.power", "power": "src\/d76b2e22-c8dd-44b1-86b5-822768b317a3\/code.power",
"settings": "src\/07858e1f-5698-4227-8941-03dc93557938\/settings.json", "settings": "src\/d76b2e22-c8dd-44b1-86b5-822768b317a3\/settings.json",
"path": "src\/07858e1f-5698-4227-8941-03dc93557938", "path": "src\/d76b2e22-c8dd-44b1-86b5-822768b317a3",
"spk": "Super__07858e1f_5698_4227_8941_03dc93557938__Power", "spk": "Super__d76b2e22_c8dd_44b1_86b5_822768b317a3__Power",
"guid": "07858e1f-5698-4227-8941-03dc93557938" "guid": "d76b2e22-c8dd-44b1-86b5-822768b317a3"
}, },
"d78bee89-6f7e-42b6-917e-17f05b238490": { "d78bee89-6f7e-42b6-917e-17f05b238490": {
"name": "Factory", "name": "Factory",
@ -185,5 +174,16 @@
"path": "src\/d78bee89-6f7e-42b6-917e-17f05b238490", "path": "src\/d78bee89-6f7e-42b6-917e-17f05b238490",
"spk": "Super__d78bee89_6f7e_42b6_917e_17f05b238490__Power", "spk": "Super__d78bee89_6f7e_42b6_917e_17f05b238490__Power",
"guid": "d78bee89-6f7e-42b6-917e-17f05b238490" "guid": "d78bee89-6f7e-42b6-917e-17f05b238490"
},
"df141f03-393f-4fa3-a568-8b65f7358b02": {
"name": "Embeddings",
"type": "class",
"namespace": "VDM\\Joomla\\Openai",
"code": "src\/df141f03-393f-4fa3-a568-8b65f7358b02\/code.php",
"power": "src\/df141f03-393f-4fa3-a568-8b65f7358b02\/code.power",
"settings": "src\/df141f03-393f-4fa3-a568-8b65f7358b02\/settings.json",
"path": "src\/df141f03-393f-4fa3-a568-8b65f7358b02",
"spk": "Super__df141f03_393f_4fa3_a568_8b65f7358b02__Power",
"guid": "df141f03-393f-4fa3-a568-8b65f7358b02"
} }
} }