Download the PHP package yandricr/gpti-php without Composer
On this page you can find all versions of the php package yandricr/gpti-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yandricr/gpti-php
More information about yandricr/gpti-php
Files in yandricr/gpti-php
Package gpti-php
Short Description This package simplifies your interaction with various GPT models, removing the need for tokens or other methods to access GPT
License MIT
Homepage https://github.com/yandricr/gpti-php
Informations about the package gpti-php
GPTI
This package simplifies your interaction with various GPT models, eliminating the need for tokens or other methods to access GPT. It also allows you to use three artificial intelligences to generate images: DALL·E, Prodia, and more, some of which are premium while others are free, all of this without restrictions or limits.
Installation
You can install the package via Composer
Available Models
GPTI provides access to a variety of artificial intelligence models to meet various needs. Currently, the available models include:
- ChatGPT
- GPT-3.5-Turbo
- ChatGPT Web
- GPT-4o
- Bing
- LLaMA-3.1
- Blackbox
- AI Images
Api key
If you want to access the premium models, enter your credentials. You can obtain them by clicking here.
Usage GPT
Models
Select one of these available models in the API to enhance your experience.
- gpt-4
- gpt-4-0613
- gpt-4-32k
- gpt-4-0314
- gpt-4-32k-0314
- gpt-3.5-turbo
- gpt-3.5-turbo-16k
- gpt-3.5-turbo-0613
- gpt-3.5-turbo-16k-0613
- gpt-3.5-turbo-0301
- text-davinci-003
- text-davinci-002
- code-davinci-002
- gpt-3
- text-curie-001
- text-babbage-001
- text-ada-001
- davinci
- curie
- babbage
- ada
- babbage-002
- davinci-002
Usage GPT v2
It's quite similar, with the difference that it has the capability to generate real-time responses via streaming using gpt-3.5-turbo.
Usage GPT v2 Streaming
Usage GPT Web
GPT-4 has been enhanced by me, but errors may arise due to technological complexity. It is advisable to exercise caution when relying entirely on its accuracy for online queries.
Usage GPT-4o
Usage GPT-4o Streaming
Usage Bing
Usage Bing Streaming
Parameters
Parameter | Default | Description |
---|---|---|
conversation_style | Balanced | You can use between: "Balanced", "Creative" and "Precise" |
markdown | false | You can convert the dialogues into continuous streams or not into Markdown |
stream | false | You are given the option to choose whether you prefer the responses to be in real-time or not |
Usage LLaMA 3.1
Usage LLaMA 3.1 Streaming
Usage blackbox
Usage Blackbox Streaming
AI Images
Check the documentation here to learn how to use the different image generation models.
API Reference
Currently, some models require your credentials to access them, while others are free. For more details and examples, please refer to the complete documentation.
Code Errors
These are the error codes that will be presented in case the API fails.
Code | Error | Description |
---|---|---|
400 | BAD_REQUEST | Not all parameters have been entered correctly |
500 | INTERNAL_SERVER_ERROR | The server has experienced failures |
200 | The API worked without issues | |
403 | FORBIDDEN | The API credentials are not valid |
401 | UNAUTHORIZED | API credentials are required |