WIP
Still a work in progress, while, trying to figure out where this clippy error is coming from, i would appreciate some insights @vigoo, Thank you:
Checking golem-llm v0.0.0 (/Users/onyedikachi/Documents/codes/algora-bounties/golem-llm/llm)
error: the `Err`-variant returned from this function is very large
--> llm/src/event_source/mod.rs:37:39
|
37 | pub fn new(response: Response) -> Result<Self, Error> {
| ^^^^^^^^^^^^^^^^^^^
|
::: llm/src/event_source/error.rs:42:5
|
42 | InvalidContentType(HeaderValue, Response),
| ----------------------------------------- the largest variant contains at least 288 bytes
...
45 | InvalidStatusCode(StatusCode, Response),
| --------------------------------------- the variant `InvalidStatusCode` contains at least 250 bytes
|
= help: try reducing the size of `event_source::error::Error`, for example by boxing large elements or replacing it with `Box<event_source::error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
= note: `-D clippy::result-large-err` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::result_large_err)]`
error: the `Err`-variant returned from this function is very large
--> llm/src/event_source/mod.rs:97:42
|
97 | fn check_response(response: Response) -> Result<Response, Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
::: llm/src/event_source/error.rs:42:5
|
42 | InvalidContentType(HeaderValue, Response),
| ----------------------------------------- the largest variant contains at least 288 bytes
...
45 | InvalidStatusCode(StatusCode, Response),
| --------------------------------------- the variant `InvalidStatusCode` contains at least 250 bytes
|
= help: try reducing the size of `event_source::error::Error`, for example by boxing large elements or replacing it with `Box<event_source::error::Error>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
error: could not compile `golem-llm` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `golem-llm` (lib test) due to 2 previous errors
Error while executing command, exit code: 101
golem-llm-bedrock
component with necessary dependencies and configurations.Cargo.toml
and Makefile.toml
to include new build tasks for Bedrock.README.md
to document the new Bedrock LLM implementation.Fixes: #2 /claim #2
David Anyatonwu
@onyedikachi-david
Golem Cloud
@golemcloud