![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/vendor/openai-php/client/src/Contracts/ |
<?php namespace OpenAI\Contracts; use OpenAI\Contracts\Resources\AudioContract; use OpenAI\Contracts\Resources\ChatContract; use OpenAI\Contracts\Resources\CompletionsContract; use OpenAI\Contracts\Resources\EditsContract; use OpenAI\Contracts\Resources\EmbeddingsContract; use OpenAI\Contracts\Resources\FilesContract; use OpenAI\Contracts\Resources\FineTunesContract; use OpenAI\Contracts\Resources\ImagesContract; use OpenAI\Contracts\Resources\ModelsContract; use OpenAI\Contracts\Resources\ModerationsContract; interface ClientContract { /** * Given a prompt, the model will return one or more predicted completions, and can also return the probabilities * of alternative tokens at each position. * * @see https://beta.openai.com/docs/api-reference/completions */ public function completions(): CompletionsContract; /** * Given a chat conversation, the model will return a chat completion response. * * @see https://platform.openai.com/docs/api-reference/chat */ public function chat(): ChatContract; /** * Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. * * @see https://beta.openai.com/docs/api-reference/embeddings */ public function embeddings(): EmbeddingsContract; /** * Learn how to turn audio into text. * * @see https://platform.openai.com/docs/api-reference/audio */ public function audio(): AudioContract; /** * Given a prompt and an instruction, the model will return an edited version of the prompt. * * @see https://beta.openai.com/docs/api-reference/edits */ public function edits(): EditsContract; /** * Files are used to upload documents that can be used with features like Fine-tuning. * * @see https://beta.openai.com/docs/api-reference/files */ public function files(): FilesContract; /** * List and describe the various models available in the API. * * @see https://beta.openai.com/docs/api-reference/models */ public function models(): ModelsContract; /** * Manage fine-tuning jobs to tailor a model to your specific training data. * * @see https://beta.openai.com/docs/api-reference/fine-tunes */ public function fineTunes(): FineTunesContract; /** * Given a input text, outputs if the model classifies it as violating OpenAI's content policy. * * @see https://beta.openai.com/docs/api-reference/moderations */ public function moderations(): ModerationsContract; /** * Given a prompt and/or an input image, the model will generate a new image. * * @see https://beta.openai.com/docs/api-reference/images */ public function images(): ImagesContract; }