|
| 1 | +<palign="center"> |
| 2 | +<p align="center"> |
| 3 | + <a href="https://github.com/openai-php/symfony/actions"><img alt="GitHub Workflow Status (master)" src="https://img.shields.io/github/actions/workflow/status/openai-php/symfony/tests.yml?branch=main&label=tests&style=round-square"></a> |
| 4 | + <a href="https://packagist.org/packages/openai-php/symfony"><img alt="Total Downloads" src="https://img.shields.io/packagist/dt/openai-php/symfony"></a> |
| 5 | + <a href="https://packagist.org/packages/openai-php/symfony"><img alt="Latest Version" src="https://img.shields.io/packagist/v/openai-php/symfony"></a> |
| 6 | + <a href="https://packagist.org/packages/openai-php/symfony"><img alt="License" src="https://img.shields.io/github/license/openai-php/symfony"></a> |
| 7 | +</p> |
| 8 | +</p> |
| 9 | + |
| 10 | +------ |
1 | 11 | **OpenAI PHP** for Symfony is a supercharged community PHP API client that allows you to interact with the[Open AI API](https://beta.openai.com/docs/api-reference/introduction). |
2 | 12 |
|
3 | 13 | >**Note:** This repository contains the integration code of the**OpenAI PHP** for Symfony. If you want to use the**OpenAI PHP** client in a framework-agnostic way, take a look at the[openai-php/client](https://github.com/openai-php/client) repository. |
@@ -26,9 +36,10 @@ using environment variables: |
26 | 36 |
|
27 | 37 | ```env |
28 | 38 | OPENAI_API_KEY=sk-... |
| 39 | +OPENAI_ORGANIZATION=... |
29 | 40 | ``` |
30 | 41 |
|
31 | | -Finally, you may use the`openai` serviceto access the OpenAI API: |
| 42 | +Finally, you may use the`openai` service to access the OpenAI API: |
32 | 43 |
|
33 | 44 | ```php |
34 | 45 | $result = $container->get('openai')->completions()->create([ |
|