decodelabs / prophet-openai
OpenAI Responses adapter for DecodeLabs Prophet
v0.4.0
2026-04-29 15:25 UTC
Requires
- php: ^8.4
- decodelabs/exceptional: ^0.6.3
- decodelabs/prophet: ^0.6
- openai-php/client: ^0.19
Requires (Dev)
- decodelabs/chorus: >0
- decodelabs/phpstan-decodelabs: ^0.7
- guzzlehttp/guzzle: ^7.9.3
- guzzlehttp/psr7: ^2.7.1
- phpunit/phpunit: ^11.5
README
OpenAI Responses adapter for DecodeLabs Prophet
This package provides the OpenAI implementation of Prophet's stateless response contract.
Installation
This package requires PHP 8.4 or higher.
Install via Composer:
composer require decodelabs/prophet-openai
Usage
DecodeLabs\Prophet\Platform\OpenAi accepts a configured OpenAI PHP client and
executes one Responses API request per Prophet call.
The adapter supports:
- text output
- JSON output
- default model suggestion by language-model level
- raw runtime model overrides through
GenerationOptions
Package-local docs and specs live under docs/.
Licensing
Prophet OpenAI is licensed under the MIT License. See LICENSE for the full license text.