refactor(message): update message api types #614
ci.yaml
on: pull_request
stable / fmt
19s
stable / check rig-core wasm target
25s
stable / clippy
38s
stable / test
48s
stable / doc
38s
Annotations
40 errors
stable / check rig-core wasm target:
rig-core/src/providers/azure.rs#L387
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / check rig-core wasm target:
rig-core/src/providers/azure.rs#L403
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / check rig-core wasm target:
rig-core/src/providers/galadriel.rs#L240
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / check rig-core wasm target:
rig-core/src/providers/galadriel.rs#L256
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / check rig-core wasm target:
rig-core/src/providers/moonshot.rs#L151
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / check rig-core wasm target:
rig-core/src/providers/azure.rs#L483
expected struct, variant or union type, found enum `completion::Message`
|
stable / check rig-core wasm target:
rig-core/src/providers/azure.rs#L498
expected struct, variant or union type, found enum `completion::Message`
|
stable / check rig-core wasm target:
rig-core/src/providers/galadriel.rs#L335
expected struct, variant or union type, found enum `completion::Message`
|
stable / check rig-core wasm target:
rig-core/src/providers/galadriel.rs#L350
expected struct, variant or union type, found enum `completion::Message`
|
stable / check rig-core wasm target:
rig-core/src/providers/moonshot.rs#L214
expected struct, variant or union type, found enum `completion::Message`
|
stable / doc:
rig-core/src/providers/azure.rs#L387
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / doc:
rig-core/src/providers/azure.rs#L403
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / doc:
rig-core/src/providers/galadriel.rs#L240
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / doc:
rig-core/src/providers/galadriel.rs#L256
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / doc:
rig-core/src/providers/moonshot.rs#L151
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / doc:
rig-core/src/providers/azure.rs#L483
expected struct, variant or union type, found enum `completion::Message`
|
stable / doc:
rig-core/src/providers/azure.rs#L498
expected struct, variant or union type, found enum `completion::Message`
|
stable / doc:
rig-core/src/providers/galadriel.rs#L335
expected struct, variant or union type, found enum `completion::Message`
|
stable / doc:
rig-core/src/providers/galadriel.rs#L350
expected struct, variant or union type, found enum `completion::Message`
|
stable / doc:
rig-core/src/providers/moonshot.rs#L214
expected struct, variant or union type, found enum `completion::Message`
|
failed to resolve: could not find `ModelChoice` in `completion`:
rig-core/src/providers/azure.rs#L387
error[E0433]: failed to resolve: could not find `ModelChoice` in `completion`
--> rig-core/src/providers/azure.rs:387:41
|
387 | choice: completion::ModelChoice::ToolCall(
| ^^^^^^^^^^^ could not find `ModelChoice` in `completion`
|
failed to resolve: could not find `ModelChoice` in `completion`:
rig-core/src/providers/azure.rs#L403
error[E0433]: failed to resolve: could not find `ModelChoice` in `completion`
--> rig-core/src/providers/azure.rs:403:37
|
403 | choice: completion::ModelChoice::Message(content.to_string()),
| ^^^^^^^^^^^ could not find `ModelChoice` in `completion`
|
expected struct, variant or union type, found enum `completion::Message`:
rig-core/src/providers/azure.rs#L483
error[E0574]: expected struct, variant or union type, found enum `completion::Message`
--> rig-core/src/providers/azure.rs:483:18
|
483 | vec![completion::Message {
| ^^^^^^^^^^^^^^^^^^^ not a struct, variant or union type
|
help: consider importing one of these items instead
|
11 + use crate::providers::anthropic::completion::Message;
|
11 + use crate::providers::galadriel::Message;
|
11 + use crate::providers::moonshot::Message;
|
11 + use crate::providers::perplexity::Message;
|
and 2 other candidates
help: if you import `Message`, refer to it directly
|
483 - vec![completion::Message {
483 + vec![Message {
|
|
expected struct, variant or union type, found enum `completion::Message`:
rig-core/src/providers/azure.rs#L498
error[E0574]: expected struct, variant or union type, found enum `completion::Message`
--> rig-core/src/providers/azure.rs:498:27
|
498 | full_history.push(completion::Message {
| ^^^^^^^^^^^^^^^^^^^ not a struct, variant or union type
|
help: consider importing one of these items instead
|
11 + use crate::providers::anthropic::completion::Message;
|
11 + use crate::providers::galadriel::Message;
|
11 + use crate::providers::moonshot::Message;
|
11 + use crate::providers::perplexity::Message;
|
and 2 other candidates
help: if you import `Message`, refer to it directly
|
498 - full_history.push(completion::Message {
498 + full_history.push(Message {
|
|
this function depends on never type fallback being `()`:
rig-core/src/providers/azure.rs#L372
error: this function depends on never type fallback being `()`
--> rig-core/src/providers/azure.rs:372:5
|
372 | fn try_from(value: CompletionResponse) -> std::prelude::v1::Result<Self, Self::Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions!
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
= help: specify the types explicitly
note: in edition 2024, the requirement `!: extractor::_::_serde::Deserialize<'_>` will fail
--> rig-core/src/providers/azure.rs:390:25
|
390 | serde_json::from_str(&call.function.arguments)?,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: `-D dependency-on-unit-never-type-fallback` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dependency_on_unit_never_type_fallback)]`
help: use `()` annotations to avoid fallback changes
|
390 | serde_json::from_str::<()>(&call.function.arguments)?,
| ++++++
|
failed to resolve: could not find `ModelChoice` in `completion`:
rig-core/src/providers/galadriel.rs#L240
error[E0433]: failed to resolve: could not find `ModelChoice` in `completion`
--> rig-core/src/providers/galadriel.rs:240:41
|
240 | choice: completion::ModelChoice::ToolCall(
| ^^^^^^^^^^^ could not find `ModelChoice` in `completion`
|
failed to resolve: could not find `ModelChoice` in `completion`:
rig-core/src/providers/galadriel.rs#L256
error[E0433]: failed to resolve: could not find `ModelChoice` in `completion`
--> rig-core/src/providers/galadriel.rs:256:37
|
256 | choice: completion::ModelChoice::Message(content.to_string()),
| ^^^^^^^^^^^ could not find `ModelChoice` in `completion`
|
expected struct, variant or union type, found enum `completion::Message`:
rig-core/src/providers/galadriel.rs#L335
error[E0574]: expected struct, variant or union type, found enum `completion::Message`
--> rig-core/src/providers/galadriel.rs:335:18
|
335 | vec![completion::Message {
| ^^^^^^^^^^^^^^^^^^^ not a struct, variant or union type
|
help: consider importing one of these items instead
|
13 + use crate::providers::anthropic::completion::Message;
|
13 + use crate::providers::azure::Message;
|
13 + use crate::providers::moonshot::Message;
|
13 + use crate::providers::perplexity::Message;
|
and 2 other candidates
help: if you import `Message`, refer to it directly
|
335 - vec![completion::Message {
335 + vec![Message {
|
|
expected struct, variant or union type, found enum `completion::Message`:
rig-core/src/providers/galadriel.rs#L350
error[E0574]: expected struct, variant or union type, found enum `completion::Message`
--> rig-core/src/providers/galadriel.rs:350:27
|
350 | full_history.push(completion::Message {
| ^^^^^^^^^^^^^^^^^^^ not a struct, variant or union type
|
help: consider importing one of these items instead
|
13 + use crate::providers::anthropic::completion::Message;
|
13 + use crate::providers::azure::Message;
|
13 + use crate::providers::moonshot::Message;
|
13 + use crate::providers::perplexity::Message;
|
and 2 other candidates
help: if you import `Message`, refer to it directly
|
350 - full_history.push(completion::Message {
350 + full_history.push(Message {
|
|
this function depends on never type fallback being `()`:
rig-core/src/providers/galadriel.rs#L225
error: this function depends on never type fallback being `()`
--> rig-core/src/providers/galadriel.rs:225:5
|
225 | fn try_from(value: CompletionResponse) -> std::prelude::v1::Result<Self, Self::Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions!
= note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748>
= help: specify the types explicitly
note: in edition 2024, the requirement `!: extractor::_::_serde::Deserialize<'_>` will fail
--> rig-core/src/providers/galadriel.rs:243:25
|
243 | serde_json::from_str(&call.function.arguments)?,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: use `()` annotations to avoid fallback changes
|
243 | serde_json::from_str::<()>(&call.function.arguments)?,
| ++++++
|
stable / test:
rig-core/src/providers/azure.rs#L387
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / test:
rig-core/src/providers/azure.rs#L403
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / test:
rig-core/src/providers/galadriel.rs#L240
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / test:
rig-core/src/providers/galadriel.rs#L256
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / test:
rig-core/src/providers/moonshot.rs#L151
failed to resolve: could not find `ModelChoice` in `completion`
|
stable / test:
rig-core/src/providers/azure.rs#L483
expected struct, variant or union type, found enum `completion::Message`
|
stable / test:
rig-core/src/providers/azure.rs#L498
expected struct, variant or union type, found enum `completion::Message`
|
stable / test:
rig-core/src/providers/galadriel.rs#L335
expected struct, variant or union type, found enum `completion::Message`
|
stable / test:
rig-core/src/providers/galadriel.rs#L350
expected struct, variant or union type, found enum `completion::Message`
|
stable / test:
rig-core/src/providers/moonshot.rs#L214
expected struct, variant or union type, found enum `completion::Message`
|