Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Desiru Configuration Example
# Copy this file to .env and add your actual API keys

# Choose one of the following LLM providers:

# Anthropic Claude
# Get your API key from: https://console.anthropic.com/
# ANTHROPIC_API_KEY=sk-ant-api03-...

# OpenAI
# Get your API key from: https://platform.openai.com/api-keys
# OPENAI_API_KEY=sk-...

# Optional: Redis configuration for async/caching features
# Default: redis://localhost:6379/0
# REDIS_URL=redis://localhost:6379/0

# Optional: Database URL for persistence features
# Default: sqlite://db/desiru_development.db
# DATABASE_URL=sqlite://db/desiru_development.db

# Optional: OpenRouter API
# Get your API key from: https://openrouter.ai/keys
# OPENROUTER_API_KEY=sk-or-v1-...

# Optional: Default model selection
# For Anthropic: claude-3-haiku-20240307, claude-3-sonnet-20240229, claude-3-opus-20240229
# For OpenAI: gpt-4o-mini, gpt-4o, gpt-4-turbo
# For OpenRouter: anthropic/claude-3-haiku, openai/gpt-4o-mini, google/gemini-pro
# DESIRU_DEFAULT_MODEL=claude-3-haiku-20240307

# Optional: Logging level
# Options: debug, info, warn, error, fatal
# DESIRU_LOG_LEVEL=info
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
ruby:
- '3.4.2'
- '3.3.6'
- '3.2.6'

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 3.4
TargetRubyVersion: 3.3
NewCops: enable
SuggestExtensions: false
Exclude:
Expand Down
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ ruby '>= 3.2.0'
gemspec

group :development, :test do
gem 'dotenv', '~> 3.0'
gem 'mock_redis', '~> 0.40'
gem 'pry', '~> 0.14'
gem 'pry-byebug', '~> 3.10'
gem 'rack-test', '~> 2.0'
gem 'rake', '~> 13.0'
gem 'rdoc'
gem 'rspec', '~> 3.0'
gem 'rubocop', '~> 1.21'
gem 'rubocop-rake', '~> 0.6'
Expand All @@ -23,9 +25,11 @@ group :development, :test do
end

# LLM interaction dependencies
gem 'anthropic', '~> 0.3'
gem 'faraday', '~> 2.0'
gem 'faraday-retry', '~> 2.0'
gem 'raix', '~> 0.4'
gem 'open_router', '~> 0.3'
gem 'ruby-openai', '~> 7.0'

# GraphQL support
gem 'graphql', '~> 2.0'
Expand Down
33 changes: 21 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ GEM
uri (>= 0.13.1)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
anthropic (0.4.1)
event_stream_parser (>= 0.3.0, < 2.0.0)
faraday (>= 1)
faraday-multipart (>= 1)
ast (2.4.3)
async (2.25.0)
console (~> 1.29)
Expand All @@ -46,6 +50,7 @@ GEM
crack (1.0.0)
bigdecimal
rexml
date (3.4.1)
diff-lcs (1.6.2)
docile (1.4.1)
dotenv (3.1.8)
Expand Down Expand Up @@ -90,6 +95,7 @@ GEM
dry-initializer (~> 3.2)
dry-schema (~> 1.14)
zeitwerk (~> 2.6)
erb (5.0.1)
event_stream_parser (1.0.0)
faraday (2.13.1)
faraday-net_http (>= 2.0, < 3.5)
Expand All @@ -99,15 +105,15 @@ GEM
multipart-post (~> 2.0)
faraday-net_http (3.4.1)
net-http (>= 0.5.0)
faraday-retry (2.3.1)
faraday-retry (2.3.2)
faraday (~> 2.0)
fiber-annotation (0.2.0)
fiber-local (1.1.0)
fiber-storage
fiber-storage (1.0.1)
forwardable (1.3.3)
grape (2.3.0)
activesupport (>= 6)
grape (2.4.0)
activesupport (>= 6.1)
dry-types (>= 1.1)
mustermann-grape (~> 1.1.0)
rack (>= 2)
Expand Down Expand Up @@ -146,7 +152,6 @@ GEM
dotenv (>= 2)
faraday (>= 1)
faraday-multipart (>= 1)
ostruct (0.6.2)
parallel (1.27.0)
parser (3.3.8.0)
ast (~> 2.4.1)
Expand All @@ -158,6 +163,9 @@ GEM
pry-byebug (3.11.0)
byebug (~> 12.0)
pry (>= 0.13, < 0.16)
psych (5.2.6)
date
stringio
public_suffix (6.0.2)
racc (1.8.1)
rack (2.2.17)
Expand All @@ -172,13 +180,10 @@ GEM
bundler (>= 1.0.0)
rack (>= 1.0.0)
rainbow (3.1.1)
raix (0.9.2)
activesupport (>= 6.0)
faraday-retry (~> 2.0)
open_router (~> 0.2)
ostruct
ruby-openai (~> 7)
rake (13.3.0)
rdoc (6.14.1)
erb
psych (>= 4.0.0)
redis (5.4.0)
redis-client (>= 0.22.0)
redis-client (0.25.0)
Expand Down Expand Up @@ -263,6 +268,7 @@ GEM
singleton (0.3.0)
sqlite3 (1.7.3)
mini_portile2 (~> 2.8.0)
stringio (3.1.7)
tilt (2.6.0)
traces (0.15.2)
tzinfo (2.0.6)
Expand All @@ -283,9 +289,10 @@ PLATFORMS
ruby

DEPENDENCIES
anthropic (~> 0.3)
async (~> 2.0)
bundler (~> 2.0)
desiru!
dotenv (~> 3.0)
dry-struct (~> 1.0)
dry-validation (~> 1.0)
faraday (~> 2.0)
Expand All @@ -294,18 +301,20 @@ DEPENDENCIES
graphql (~> 2.0)
jwt (~> 2.0)
mock_redis (~> 0.40)
open_router (~> 0.3)
pry (~> 0.14)
pry-byebug (~> 3.10)
rack-cors (~> 2.0)
rack-test (~> 2.0)
rack-throttle (~> 0.7)
raix (~> 0.4)
rake (~> 13.0)
rdoc
redis (~> 5.0)
rspec (~> 3.0)
rubocop (~> 1.21)
rubocop-rake (~> 0.6)
rubocop-rspec (~> 2.0)
ruby-openai (~> 7.0)
sequel (~> 5.0)
simplecov (~> 0.22)
sinatra (~> 3.0)
Expand Down
Loading