Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Use PSR-18 compatible wrapper for Laravel HTTP client #127

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dshafik
Copy link

@dshafik dshafik commented Nov 28, 2024

I was trying to review OpenAI requests using Telescope which captures requests made using the Laravel HTTP Client, however this integration uses Guzzle directly.

The OpenAI PHP library supports any PSR-18 compatible client, so I pulled in swisnl/laravel-psr-http-client-bridge which is a PSR-18 compatible wrapper around the Laravel HTTP Client and used that instead of Guzzle directly.

This change allows the requests to show up in Telescope as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant