Download the PHP package iteks/laravel-openai without Composer

On this page you can find all versions of the php package iteks/laravel-openai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-openai

Laravel OpenAI

Total Downloads Latest Stable Version License

Laravel OpenAI is a powerful and user-friendly package designed to seamlessly integrate OpenAI's advanced AI capabilities into your Laravel applications. This package simplifies interaction with the OpenAI API, offering an elegant interface to quickly leverage various AI models for chat, embeddings, and more. With intuitive configuration through environment variables and smooth integration via a dedicated Laravel service provider, Laravel OpenAI ensures you can get started with OpenAI endpoints swiftly and efficiently. Enhance your Laravel applications by harnessing the power of OpenAI's AI models with this versatile and easy-to-use client.

A community-maintained package, Offered by iteks, Developed by jeramyhing.

Get Started

Requires PHP 8.1+

Install Laravel OpenAI via the Composer package manager:

Set your OpenAI API key and other configurations in your .env file:

Usage

Include the OpenAi facade.

For API calls, required parameters should be passed directly to the Facade methods without wrapping them in an array. Optional parameters can be included as an associative array at the end. Each method's documentation includes a link to the official API reference for further details.

ENDPOINTS

Audio

Create speech

Generates audio from the input text. See official documentation for all options.

top

Create transcription

Transcribes audio into the input language. See official documentation for all options.

top

Create translation

Translates audio into English. See official documentation for all options.

top

Chat

Create chat completion

Creates a model response for the given chat conversation. See official documentation for all options.

top

Embeddings

Create embeddings

Creates an embedding vector representing the input text. See official documentation for all options.

top

Fine-tuning

Create fine-tuning job

Creates a fine-tuning job which begins the process of creating a new model from a given dataset. See official documentation for all options.

top

List fine-tuning jobs

List your organization's fine-tuning jobs. See official documentation for all options.

top

List fine-tuning events

Get status updates for a fine-tuning job. See official documentation for all options.

top

List fine-tuning checkpoints

List checkpoints for a fine-tuning job. See official documentation for all options.

top

Retrieve fine-tuning job

Get info about a fine-tuning job. See official documentation for all options.

top

Cancel fine-tuning

Immediately cancel a fine-tune job. See official documentation for all options.

top

Batch

Create batch

Creates and executes a batch from an uploaded file of requests. See official documentation for all options.

top

Retrieve batch

Retrieves a batch. See official documentation for all options.

top

Cancel batch

Cancels an in-progress batch. See official documentation for all options.

top

List batch

List your organization's batches. See official documentation for all options.

top

Files

Upload file

Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB. See official documentation for all options.

top

List files

Returns a list of files that belong to the user's organization. See official documentation for all options.

top

Retrieve file

Returns information about a specific file. See official documentation for all options.

top

Delete file

Delete a file. See official documentation for all options.

top

Retrieve file content

Returns the contents of the specified file. See official documentation for all options.

top

Images

Create image

Creates an image given a prompt. See official documentation for all options.

top

Create image edit

Creates an edited or extended image given an original image and a prompt. See official documentation for all options.

top

Create image variation

Creates a variation of a given image. See official documentation for all options.

top

Models

List models

Lists the currently available models, and provides basic information about each one such as the owner and availability. See official documentation for all options.

top

Retrieve model

Retrieves a model instance, providing basic information about the model such as the owner and permissioning. See official documentation for all options.

top

Delete a fine-tuned model

Delete a fine-tuned model. You must have the Owner role in your organization to delete a model. See official documentation for all options.

top

Moderations

Create moderation

Classifies if text is potentially harmful. See official documentation for all options.

top

ASSISTANTS

Assistants

Create assistant

Create an assistant with a model and instructions. See official documentation for all options.

top

List assistants

Returns a list of assistants. See official documentation for all options.

top

Retrieve assistant

Retrieves an assistant. See official documentation for all options.

top

Modify assistant

Modifies an assistant. See official documentation for all options.

top

Delete assistant

Delete an assistant. See official documentation for all options.

top

Threads

Create thread

Create a thread. See official documentation for all options.

top

Retrieve thread

Retrieves a thread. See official documentation for all options.

top

Modify thread

Modifies a thread. See official documentation for all options.

top

Delete thread

Delete a thread. See official documentation for all options.

top

Messages

Create message

Create a message. See official documentation for all options.

top

List messages

Returns a list of messages for a given thread. See official documentation for all options.

top

Retrieve message

Retrieves a message. See official documentation for all options.

top

Modify message

Modifies a message. See official documentation for all options.

top

Delete message

Deletes a message. See official documentation for all options.

top

Runs

Create run

Create a run. See official documentation for all options.

top

Create thread and run

Create a thread and run it in one request. See official documentation for all options.

top

List runs

Returns a list of runs belonging to a thread. See official documentation for all options.

top

Retrieve run

Retrieves a run. See official documentation for all options.

top

Modify run

Modifies a run. See official documentation for all options.

top

Submit tool outputs to run

When a run has the status: "requires_action" and required_action.type is submit_tool_outputs, this endpoint can be used to submit the outputs from the tool calls once they're all completed. See official documentation for all options.

top

Cancel a run

Cancels a run that is in_progress. See official documentation for all options.

top

Run Steps

List run steps

Returns a list of run steps belonging to a run. See official documentation for all options.

top

Retrieve run step

Retrieves a run step. See official documentation for all options.

top

Vector Stores

Create vector store

Create a vector store. See official documentation for all options.

top

List vector stores

Returns a list of vector stores. See official documentation for all options.

top

Retrieve vector store

Retrieves a vector store. See official documentation for all options.

top

Modify vector store

Modifies a vector store. See official documentation for all options.

top

Delete vector store

Delete a vector store. See official documentation for all options.

top

Vector Store Files

Create vector store file

Create a vector store file by attaching a File to a vector store. See official documentation for all options.

top

List vector store files

Returns a list of vector store files. See official documentation for all options.

top

Retrieve vector store file

Retrieves a vector store file. See official documentation for all options.

top

Delete vector store file

Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted. To delete the file, use the delete file endpoint. See official documentation for all options.

top

Vector Store File Batches

Create vector store file batch

Create a vector store file batch. See official documentation for all options.

top

Retrieve vector store file batch

Retrieves a vector store file batch. See official documentation for all options.

top

Cancel vector store file batch

Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. See official documentation for all options.

top

List vector store files in a batch

Returns a list of vector store files in a batch. See official documentation for all options.

top

LEGACY

Completions

Create completion

Creates a completion for the provided prompt and parameters. See official documentation for all options.

top


All versions of laravel-openai with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.8
laravel/framework Version ^9.46|^10.10|^11.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package iteks/laravel-openai contains the following files

Loading the files please wait ....