You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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: