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.
Download iteks/laravel-openai
More information about iteks/laravel-openai
Files in iteks/laravel-openai
Package laravel-openai
Short Description A powerful package that seamlessly integrates OpenAI's advanced AI capabilities into your Laravel applications. This package offers quick setup and intuitive configuration to leverage AI models for chat, embeddings, and more.
License MIT
Informations about the package laravel-openai
Laravel OpenAI is a community-maintained PHP API client, 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.
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 base URI in your .env file. These configurations are required:
To explore additional optional configurations, publish the package configuration file using the following command:
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
- Create transcription
- Create translation
- Chat
- Create chat completion
- Embeddings
- Create embeddings
- Fine-tuning
- Create fine-tuning job
- List fine-tuning jobs
- List fine-tuning events
- List fine-tuning checkpoints
- Retrieve fine-tuning job
- Cancel fine-tuning
- Batch
- Create batch
- Retrieve batch
- Cancel batch
- List batch
- Files
- Upload file
- List files
- Retrieve file
- Delete file
- Retrieve file content
- Images
- Create image
- Create image edit
- Create image variation
- Models
- List models
- Retrieve model
- Delete a fine-tuned model
- Moderations
- Create moderation
- Audio
- ASSISTANTS
- Assistants (Beta v2)
- Create assistant
- List assistants
- Retrieve assistant
- Modify assistant
- Delete assistant
- Threads (Beta v2)
- Create thread
- Retrieve thread
- Modify thread
- Delete thread
- Messages (Beta v2)
- Create message
- List messages
- Retrieve message
- Modify message
- Delete message
- Runs (Beta v2)
- Create run
- Create thread and run
- List runs
- Retrieve run
- Modify run
- Submit tool outputs to run
- Cancel a run
- Run Steps (Beta v2)
- List run steps
- Retrieve run step
- Vector Stores (Beta v2)
- Create vector store
- List vector stores
- Retrieve vector store
- Modify vector store
- Delete vector store
- Vector Store Files (Beta v2)
- Create vector store file
- List vector store files
- Retrieve vector store file
- Delete vector store file
- Vector Store File Batches (Beta v2)
- Create vector store file batch
- Retrieve vector store file batch
- Cancel vector store file batch
- List vector store files in a batch
- Assistants (Beta v2)
- LEGACY
- Completions
- Create completion
- Completions
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
guzzlehttp/guzzle Version ^7.8
laravel/framework Version ^9.46|^10.10|^11.0