/openai-php

PHP Client Example for accessing ServiceStack's OpenAI Chat Completions API

Primary LanguagePHP

PHP Client Example for OpenAI Chat Completions API

Start your AI Chat .NET App

Run the example:

php app.php

Add just the ChatCompletion and its dependent DTOs:

npx get-dtos php https://localhost:5001 --include "ChatCompletion.*"

Alternatively, add all DTOs:

npx get-dtos php https://localhost:5001

Update DTOs:

npx get-dtos php