Warning
Early / Alpha release (v0.1) — built for a hackathon project.
Not intended for production use. API and interfaces may change.
Ruby client for the Cerebras AI inference API.
gem 'cerebras', '~> 0.1.0'Or add to your Gemfile:
gem 'cerebras'require 'cerebras'
client = Cerebras::Client.new(api_key: ENV['CEREBRAS_API_KEY'])
response = client.chat(
model: 'llama3.1-8b',
messages: [{ role: 'user', content: 'Hello!' }]
)
puts response- Version:
0.1.0(early development) - Part of a hackathon submission
- Core features: chat, completions, retry logic, SSE streaming support
MIT