groq-ruby icon indicating copy to clipboard operation
groq-ruby copied to clipboard

Groq Cloud runs LLM models fast and cheap. This is a convenience client library for Ruby.

Results 2 groq-ruby issues
Sort by recently updated
recently updated
newest added

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: ```json "usage":{"prompt_tokens":163,"prompt_time":0.059,"completion_tokens":481,"completion_time":1.591,"total_tokens":644,"total_time":1.65} ``` Nor does it...

Currently to enable faraday logging to STDOUT, each `Groq::Client` needs a setup like: ```ruby logger = Logger.new($stdout) logger.level = Logger::DEBUG @client = Groq::Client.new do |faraday| # Log request and response...