Skip to content

refactor(message): update message api types #591

refactor(message): update message api types

refactor(message): update message api types #591

Triggered via pull request February 2, 2025 00:18
Status Failure
Total duration 2m 31s
Artifacts

ci.yaml

on: pull_request
stable / fmt
20s
stable / fmt
stable / check rig-core wasm target
24s
stable / check rig-core wasm target
stable / clippy
38s
stable / clippy
stable / test
2m 23s
stable / test
stable / doc
48s
stable / doc
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 6 warnings
stable / fmt
Process completed with exit code 1.
unneeded `return` statement: rig-core/src/providers/anthropic/completion.rs#L119
error: unneeded `return` statement --> rig-core/src/providers/anthropic/completion.rs:119:9 | 119 | / return Ok(completion::CompletionResponse { 120 | | choice, 121 | | raw_response: response, 122 | | }); | |__________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return = note: `-D clippy::needless-return` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_return)]` help: remove `return` | 119 ~ Ok(completion::CompletionResponse { 120 + choice, 121 + raw_response: response, 122 ~ }) |
accessing first element with `response.candidates.get(0)`: rig-core/src/providers/gemini/completion.rs#L148
error: accessing first element with `response.candidates.get(0)` --> rig-core/src/providers/gemini/completion.rs:148:25 | 148 | let candidate = response.candidates.get(0).ok_or_else(|| { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `response.candidates.first()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first = note: `-D clippy::get-first` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::get_first)]`
stable / clippy
Clippy has exited with exit code 101
stable / fmt: rig-core/src/completion/mod.rs#L1
Diff in /home/runner/work/rig/rig/rig-core/src/completion/mod.rs
stable / fmt: rig-core/src/json_utils.rs#L48
Diff in /home/runner/work/rig/rig/rig-core/src/json_utils.rs
stable / fmt: rig-core/src/json_utils.rs#L141
Diff in /home/runner/work/rig/rig/rig-core/src/json_utils.rs
stable / fmt: rig-core/src/providers/cohere.rs#L326
Diff in /home/runner/work/rig/rig/rig-core/src/providers/cohere.rs
stable / fmt: rig-core/src/providers/deepseek.rs#L9
Diff in /home/runner/work/rig/rig/rig-core/src/providers/deepseek.rs
stable / fmt: rig-core/src/providers/openai.rs#L385
Diff in /home/runner/work/rig/rig/rig-core/src/providers/openai.rs