-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Most of the API is exactly the same, as is usage, with the exception of a few things: * `Request` has been renamed `Prompt` because in actual use this makes things clearer. * Almost everything supports zero-copy deserialization where possible at the possible cost of cognitive overhead, however most code will require no changes. Cow strings are used everywhere. This also allows static `Message`s and the like to be created at compile time. * `Stream` is now `Send`. * Added an example of an Assistant using Python to solve problems. * More convenience methods like `to_static` for some structs. * A few bug fixes
- Loading branch information
Showing
18 changed files
with
1,247 additions
and
530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "misanthropic" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
edition = "2021" | ||
authors = ["Michael de Gans <[email protected]>"] | ||
description = "An async, ergonomic, client for Anthropic's Messages API" | ||
|
@@ -39,10 +39,15 @@ pulldown-cmark-to-cmark = { version = "17", optional = true } | |
static_assertions = "1" | ||
|
||
[dev-dependencies] | ||
# for all examples | ||
clap = { version = "4", features = ["derive"] } | ||
env_logger = "0.11" | ||
tokio = { version = "1", features = ["macros", "rt-multi-thread"] } | ||
# for the strawberry example | ||
itertools = "0.13" | ||
# for the python example | ||
subprocess = "0.2" | ||
tempfile = "3.12" | ||
|
||
[features] | ||
# rustls because I am sick of getting Dependabot alerts for OpenSSL. | ||
|
@@ -77,3 +82,7 @@ partialeq = [] | |
[[example]] | ||
name = "strawberry" | ||
required-features = ["markdown"] | ||
|
||
[[example]] | ||
name = "python" | ||
required-features = ["markdown", "prompt-caching"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.