feat: support together AI #630
Annotations
6 errors
Run clippy action:
rig-core/src/providers/together/completion.rs#L121
error[E0433]: failed to resolve: could not find `ModelChoice` in `completion`
--> rig-core/src/providers/together/completion.rs:121:41
|
121 | choice: completion::ModelChoice::Message(content.to_string()),
| ^^^^^^^^^^^ could not find `ModelChoice` in `completion`
|
Run clippy action:
rig-core/src/providers/together/completion.rs#L137
error[E0433]: failed to resolve: could not find `ModelChoice` in `completion`
--> rig-core/src/providers/together/completion.rs:137:45
|
137 | choice: completion::ModelChoice::ToolCall(
| ^^^^^^^^^^^ could not find `ModelChoice` in `completion`
|
Run clippy action:
rig-core/src/providers/together/completion.rs#L47
error[E0574]: expected struct, variant or union type, found enum `completion::Message`
--> rig-core/src/providers/together/completion.rs:47:18
|
47 | vec![completion::Message {
| ^^^^^^^^^^^^^^^^^^^ not a struct, variant or union type
|
help: consider importing one of these items instead
|
6 + use crate::providers::anthropic::completion::Message;
|
6 + use crate::providers::galadriel::Message;
|
6 + use crate::providers::perplexity::Message;
|
6 + use crate::providers::together::completion::together_ai_api_types::Message;
|
and 2 other candidates
help: if you import `Message`, refer to it directly
|
47 - vec![completion::Message {
47 + vec![Message {
|
|
Run clippy action:
rig-core/src/providers/together/completion.rs#L58
error[E0574]: expected struct, variant or union type, found enum `completion::Message`
--> rig-core/src/providers/together/completion.rs:58:23
|
58 | messages.push(completion::Message {
| ^^^^^^^^^^^^^^^^^^^ not a struct, variant or union type
|
help: consider importing one of these items instead
|
6 + use crate::providers::anthropic::completion::Message;
|
6 + use crate::providers::galadriel::Message;
|
6 + use crate::providers::perplexity::Message;
|
6 + use crate::providers::together::completion::together_ai_api_types::Message;
|
and 2 other candidates
help: if you import `Message`, refer to it directly
|
58 - messages.push(completion::Message {
58 + messages.push(Message {
|
|
Run clippy action:
rig-core/src/providers/together/completion.rs#L111
error: this function depends on never type fallback being `()`
--> rig-core/src/providers/together/completion.rs:111:9
|
111 | 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/together/completion.rs:140:29
|
140 | ... 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
|
140 | serde_json::from_str::<()>(&call.function.arguments)?,
| ++++++
|
Run clippy action
Clippy has exited with exit code 101
|
Loading