Download the PHP package gridwb/laravel-perplexity without Composer
On this page you can find all versions of the php package gridwb/laravel-perplexity. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gridwb/laravel-perplexity
More information about gridwb/laravel-perplexity
Files in gridwb/laravel-perplexity
Package laravel-perplexity
Short Description perplexity.ai API for Laravel
License MIT
Homepage https://github.com/gridwb/laravel-perplexity
Informations about the package laravel-perplexity
Overview
Laravel Perplexity is a convenient wrapper for interacting with the Perplexity API in Laravel applications.
Table of Contents
- Installation
- Usage
- Agent Resource
- Authentication Resource
- Embeddings Resource
- Search Resource
- Sonar Resource
- Testing
- Changelog
- License
Installation
-
Install the package
-
Publish the configuration file
- Add environment variables
Usage
Agent Resource
create response
Generate a response for the provided input with optional web search and reasoning.
create streamed response
Generate a streamed response for the provided input with optional web search and reasoning.
Authentication Resource
generate auth token
Generates a new authentication token for API access.
revoke auth token
Revokes an existing authentication token.
Embeddings Resource
create embeddings
Generate embeddings for a list of texts. Use these embeddings for semantic search, clustering, and other machine learning applications.
create contextualized embeddings
Generate contextualized embeddings for document chunks. Chunks from the same document share context awareness, improving retrieval quality for document-based applications.
Search Resource
search the web
Search the web and retrieve relevant web page contents.
Sonar Resource
create chat completion
Generate a chat completion response for the given conversation.
create streamed chat completion
Generate a streamed chat completion response for the given conversation.
create async chat completion
Submit an asynchronous chat completion request.
list async chat completions
Retrieve a list of all asynchronous chat completion requests for a given user.
get async chat completion
Retrieve the response for a given asynchronous chat completion request.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-perplexity with dependencies
guzzlehttp/guzzle Version ^7.9.0
spatie/laravel-data Version ^4.13
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0