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

genai: add debug printing of requests #178

Merged
merged 2 commits into from
Jul 16, 2024
Merged

genai: add debug printing of requests #178

merged 2 commits into from
Jul 16, 2024

Conversation

jba
Copy link
Collaborator

@jba jba commented Jul 16, 2024

Sometimes it is useful to see the requests that are being
sent to the service. Add a facility for this.

@jba jba requested a review from eliben July 16, 2024 11:28
Copy link
Member

@eliben eliben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

I was thinking about doing something similar, but emitting the request in a "curl-compatible" format so I could just copy-paste it to curl later. This is a good start

genai/embed.go Outdated Show resolved Hide resolved
jba added 2 commits July 16, 2024 12:59
Sometimes it is useful to see the requests that are being
sent to the service. Add a facility for this.
@jba jba merged commit f996f0d into main Jul 16, 2024
2 checks passed
@jba jba deleted the jba/debug-requests branch July 16, 2024 17:04
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.

2 participants