Skip to content

Commit 19d1cdf

Browse files
authored
Merge pull request #5 from itzlambda/separate-chat-crate
refactor(providers): separate out api implementation in separate crate
2 parents 9d24a31 + ceef28b commit 19d1cdf

71 files changed

Lines changed: 6344 additions & 6732 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 41 additions & 142 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
members = ["crates/rullm-core", "crates/rullm-cli"]
2+
members = ["crates/rullm-cli", "crates/rullm-chat-completion", "crates/rullm-anthropic"]
33
resolver = "2"
44

55
[workspace.package]
@@ -15,7 +15,7 @@ rand = "0.8"
1515
reqwest = { version = "0.11", features = ["json", "stream"] }
1616
bytes = "1.0"
1717
log = "0.4"
18-
serde = { version = "1.0", features = ["derive"] }
18+
serde = { version = "1.0", features = ["derive", "rc"] }
1919
serde_json = "1.0"
2020
thiserror = "1.0"
2121
anyhow = "1.0"

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ rullm "What is the capital of France?"
1313
# Use different models with aliases
1414
rullm --model gpt4 "Explain quantum computing"
1515
rullm --model claude "Write a poem about the ocean"
16-
rullm --model gemini "What's the weather like?"
1716

1817
# Use templates for structured queries ({{input}} placeholder is automatically filled)
1918
rullm -t code-review "Review this function"
@@ -32,7 +31,7 @@ rullm chat --model claude
3231

3332
# Disable streaming for buffered output
3433
rullm --no-streaming "Write a poem about the ocean"
35-
rullm chat --no-streaming --model gemini
34+
rullm chat --no-streaming --model claude
3635

3736
# Set up your API keys
3837
rullm keys set openai

crates/rullm-anthropic/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "rullm-anthropic"
3+
version.workspace = true
4+
edition.workspace = true
5+
rust-version.workspace = true
6+
7+
[dependencies]
8+
tokio = { workspace = true }
9+
reqwest = { workspace = true }
10+
bytes = { workspace = true }
11+
serde = { workspace = true, features = ["rc"] }
12+
serde_json = { workspace = true }
13+
thiserror = { workspace = true }
14+
futures = { workspace = true }
15+
async-stream = { workspace = true }
16+
17+
[dev-dependencies]
18+
tokio-test = { workspace = true }

0 commit comments

Comments
 (0)