Skip to content

laravel wrapper for OpenAI api, Code Completion, Text Completion and Image generation

Notifications You must be signed in to change notification settings

HamzaAlayed/open-ai

Repository files navigation

OpenAI wrapper for Laravel

Environment variables

OPENAI_API_URL=https://api.openai.com/v1

Your secret API keys OpenAI API Keys

OPENAI_API_KEY=SECRET_KEY

Your Organization ID

OPENAI_ORGANIZATION=ORGANIZATION-ID

Text basic completion

OpenAI::textCompletion('Write this is a test');

Text advance completion

OpenAI::model('text-davinci-003')
->temperature(0.25)
->topP(0)
->textCompletion('Write this is a test');

About

laravel wrapper for OpenAI api, Code Completion, Text Completion and Image generation

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages