-
Notifications
You must be signed in to change notification settings - Fork 4
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
chat(hash) to also return raw response + header object #9
Comments
I'd love this too! Currently struggling to stay inside their rate limits & it's hard without better ability to show their headers. I think it should be enabled by default, or just auto-log with metadata: true., but better to return it as the other result imo. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently
chat(messages)
returns a hash{role: "assistant", content: "Welcome"}
and there is no way to access the raw response object which contains usage data:Nor does it return the HTTP header information that contains rate limit stats:
Can we change
chat()
to return multiple response objects?Perhaps this mode is enabled via config
@client.chat("Hello?", metadata: true)
The text was updated successfully, but these errors were encountered: