Skip to content

About

Cerebras Cloud Ruby sdk

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Cerebras Ruby SDK

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.

Installation

gem 'cerebras', '~> 0.1.0'

Or add to your Gemfile:

gem 'cerebras'

Quick Start

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

Status

  • Version: 0.1.0 (early development)
  • Part of a hackathon submission
  • Core features: chat, completions, retry logic, SSE streaming support

License

MIT

About

Cerebras Cloud Ruby sdk

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages