Skip to content

Commit

Permalink
Adding image endpoint and messing around with terminal output affects
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Helbig committed Jun 1, 2023
1 parent 3c1cd7c commit be62891
Show file tree
Hide file tree
Showing 12 changed files with 274 additions and 60 deletions.
124 changes: 69 additions & 55 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions openai-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ reqwest = { version = "0.11.18", features = ["json"] }
serde = { version = "1.0.163", features = ["derive"] }
serde_json = "1.0.96"
thiserror = "1.0.40"
url = { version = "2.3.1", features = ["serde"] }
6 changes: 6 additions & 0 deletions openai-api/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ pub enum Error {
#[error("Unsupported role: {0}")]
UnsupportedRole(String),

#[error("Unsupported image size: {0}")]
UnsupportedImageSize(String),

#[error("Unsupported response format: {0}")]
UnsupportedResponseFormat(String),

#[error("Json Serialization: {0}")]
JsonSerialization(String),

Expand Down
Loading

0 comments on commit be62891

Please sign in to comment.