openai/src/796cca70-2577-4f8f-9a05-ac37db1f2f02/README.md

58 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2023-07-04 06:26:05 +00:00
```
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
```
# class Completions (Details)
> namespace: **VDM\Joomla\Openai**
2023-10-10 09:49:16 +00:00
> extends: **Api**
2023-07-04 06:26:05 +00:00
```uml
@startuml
class Completions #Gold {
+ create(string $model, string|array $prompt, ...) : ?object
}
note right of Completions::create
Create a completion using the OpenAI API.
API Ref: https://platform.openai.com/docs/api-reference/completions
since: 3.2.0
return: ?object
arguments:
string $model
string|array $prompt
?int $maxTokens = null
?string $suffix = null
?float $temperature = null
?float $topP = null
?int $n = null
?bool $stream = null
?int $logprobs = null
?bool $echo = null
string|null $stop = null
?float $presencePenalty = null
?float $frequencyPenalty = null
?int $bestOf = null
?array $logitBias = null
?string $user = null
end note
@enduml
```
---
```
██╗ ██████╗██████╗
██║██╔════╝██╔══██╗
██║██║ ██████╔╝
██ ██║██║ ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
╚════╝ ╚═════╝╚═════╝
```
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)