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

Add OpenAI requests card for Laravel Pulse #78

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

gehrisandro
Copy link
Collaborator

This PR adds a Recorder and Card to integrate in a Laravel Pulse Dashboard.

The card supports two metrics:

  • Requests per user: Shows the number of requests per user.
  • Requests per endpoint: Shows the number of requests per endpoint.
<livewire:openai.pulse.requests />

If you want to be specific about the metric to show, you can pass it as type:

<livewire:openai.pulse.requests type="endpoint" />

<livewire:openai.pulse.requests type="user" />

TODOs:

  • Add tests for Recorder and Livewire card

This PR depends on the event dispatching added here.

Card without type specified (type is selectable):
CleanShot 2023-12-05 at 13 22 17

Card with type="user":
CleanShot 2023-12-05 at 13 21 56

Card with type="endpoint":
CleanShot 2023-12-05 at 13 20 48

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