[INFO] fetching crate chatgpt_rs_fork 1.2.4... [INFO] testing chatgpt_rs_fork-1.2.4 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate chatgpt_rs_fork 1.2.4 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate chatgpt_rs_fork 1.2.4 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate chatgpt_rs_fork 1.2.4 [INFO] tweaked toml for crates.io crate chatgpt_rs_fork 1.2.4 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate chatgpt_rs_fork 1.2.4 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate chatgpt_rs_fork 1.2.4 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 31e91995b322e824dbbb97a8d1d60d9365f8828733f7daa4d982912fbd0f1044 [INFO] running `Command { std: "docker" "start" "-a" "31e91995b322e824dbbb97a8d1d60d9365f8828733f7daa4d982912fbd0f1044", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "31e91995b322e824dbbb97a8d1d60d9365f8828733f7daa4d982912fbd0f1044", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31e91995b322e824dbbb97a8d1d60d9365f8828733f7daa4d982912fbd0f1044", kill_on_drop: false }` [INFO] [stdout] 31e91995b322e824dbbb97a8d1d60d9365f8828733f7daa4d982912fbd0f1044 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4eba40151c9ee8341d2bdd679bc6e43dd3d9f9edad70e154a6ac917a7b97fdc7 [INFO] running `Command { std: "docker" "start" "-a" "4eba40151c9ee8341d2bdd679bc6e43dd3d9f9edad70e154a6ac917a7b97fdc7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling cc v1.1.15 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling rustls-pki-types v1.8.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling rustls v0.23.12 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling webpki-roots v0.26.5 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling rustls-pemfile v2.1.3 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling darling_core v0.14.4 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling rustls-webpki v0.102.7 [INFO] [stderr] Compiling darling_macro v0.14.4 [INFO] [stderr] Compiling darling v0.14.4 [INFO] [stderr] Compiling derive_builder_core v0.12.0 [INFO] [stderr] Compiling derive_builder_macro v0.12.0 [INFO] [stderr] Compiling derive_builder v0.12.0 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling tokio-rustls v0.26.0 [INFO] [stderr] Compiling hyper-util v0.1.7 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling hyper-rustls v0.27.2 [INFO] [stderr] Compiling reqwest v0.12.7 [INFO] [stderr] Compiling chatgpt_rs_fork v1.2.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 14s [INFO] running `Command { std: "docker" "inspect" "4eba40151c9ee8341d2bdd679bc6e43dd3d9f9edad70e154a6ac917a7b97fdc7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eba40151c9ee8341d2bdd679bc6e43dd3d9f9edad70e154a6ac917a7b97fdc7", kill_on_drop: false }` [INFO] [stdout] 4eba40151c9ee8341d2bdd679bc6e43dd3d9f9edad70e154a6ac917a7b97fdc7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0c89e1f8a6810d3afdb6b4739325893ecefb06aa7dd3308e4216ba4ab9ca20fc [INFO] running `Command { std: "docker" "start" "-a" "0c89e1f8a6810d3afdb6b4739325893ecefb06aa7dd3308e4216ba4ab9ca20fc", kill_on_drop: false }` [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-rustls v0.26.0 [INFO] [stderr] Compiling hyper-util v0.1.7 [INFO] [stderr] Compiling hyper-rustls v0.27.2 [INFO] [stderr] Compiling reqwest v0.12.7 [INFO] [stderr] Compiling chatgpt_rs_fork v1.2.4 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `futures_util` [INFO] [stdout] --> examples/streamed_conversation.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use futures_util::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^ use of unresolved module or unlinked crate `futures_util` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `futures_util`, use `cargo add futures_util` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `gpt_function` in this scope [INFO] [stdout] --> examples/function_calls.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 27 | #[gpt_function] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ResponseChunk` in this scope [INFO] [stdout] --> examples/streamed_conversation.rs:23:25 [INFO] [stdout] | [INFO] [stdout] 23 | let mut output: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `save_history_postcard` found for struct `Conversation` in the current scope [INFO] [stdout] --> examples/bin_persistence.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 24 | / conversation [INFO] [stdout] 25 | | .save_history_postcard("example_conversation.bin") [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `save_history_json` with a similar name [INFO] [stdout] | [INFO] [stdout] 25 - .save_history_postcard("example_conversation.bin") [INFO] [stdout] 25 + .save_history_json("example_conversation.bin") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `futures` [INFO] [stdout] --> src/chatgpt.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | use futures::StreamExt; [INFO] [stdout] | ^^^^^^^ use of unresolved module or unlinked crate `futures` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `futures`, use `cargo add futures` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::types::ResponseChunk` [INFO] [stdout] --> src/chatgpt.rs:30:62 [INFO] [stdout] | [INFO] [stdout] 30 | use crate::{client::ChatGPT, config::ModelConfiguration, types::ResponseChunk}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ no `ResponseChunk` in `types` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/types.rs:181:10 [INFO] [stdout] | [INFO] [stdout] 180 | #[cfg(feature = "streams")] [INFO] [stdout] | ------------------- the item is gated behind the `streams` feature [INFO] [stdout] 181 | pub enum ResponseChunk { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `restore_conversation_postcard` found for struct `chatgpt::client::ChatGPT` in the current scope [INFO] [stdout] --> examples/bin_persistence.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 29 | let mut new = client [INFO] [stdout] | ___________________- [INFO] [stdout] 30 | | .restore_conversation_postcard("example_conversation.bin") [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `restore_conversation_json` with a similar name [INFO] [stdout] | [INFO] [stdout] 30 - .restore_conversation_postcard("example_conversation.bin") [INFO] [stdout] 30 + .restore_conversation_json("example_conversation.bin") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `function_validation` found for struct `chatgpt::config::ModelConfigurationBuilder` in the current scope [INFO] [stdout] --> examples/function_calls.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 45 | / ModelConfigurationBuilder::default() [INFO] [stdout] 46 | | .function_validation(FunctionValidationStrategy::Strict) [INFO] [stdout] | | -^^^^^^^^^^^^^^^^^^^ method not found in `chatgpt::config::ModelConfigurationBuilder` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FunctionValidationStrategy` [INFO] [stdout] --> examples/function_calls.rs:46:34 [INFO] [stdout] | [INFO] [stdout] 46 | .function_validation(FunctionValidationStrategy::Strict) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `FunctionValidationStrategy` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/bin_persistence.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let mut new = client [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | let response = new [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `new` an explicit type [INFO] [stdout] | [INFO] [stdout] 29 | let mut new: /* Type */ = client [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/bin_persistence.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let response = new [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | println!("Response for Java: {}", response.message().content); [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `response` an explicit type [INFO] [stdout] | [INFO] [stdout] 33 | let response: /* Type */ = new [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message_streaming` found for struct `Conversation` in the current scope [INFO] [stdout] --> examples/streamed_conversation.rs:19:10 [INFO] [stdout] | [INFO] [stdout] 18 | let mut stream = conversation [INFO] [stdout] | ______________________- [INFO] [stdout] 19 | | .send_message_streaming("Could you name me a few popular Rust backend server frameworks?") [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `send_message` with a similar name [INFO] [stdout] | [INFO] [stdout] 19 - .send_message_streaming("Could you name me a few popular Rust backend server frameworks?") [INFO] [stdout] 19 + .send_message("Could you name me a few popular Rust backend server frameworks?") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/streamed_conversation.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let mut stream = conversation [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | while let Some(chunk) = stream.next().await { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `stream` an explicit type [INFO] [stdout] | [INFO] [stdout] 18 | let mut stream: /* Type */ = conversation [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add_function` found for struct `Conversation` in the current scope [INFO] [stdout] --> examples/function_calls.rs:53:10 [INFO] [stdout] | [INFO] [stdout] 53 | conv.add_function(send_message())?; [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Conversation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 0 arguments were supplied [INFO] [stdout] --> examples/function_calls.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | conv.add_function(send_message())?; [INFO] [stdout] | ^^^^^^^^^^^^-- two arguments of type `std::string::String` and `std::string::String` are missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> examples/function_calls.rs:28:10 [INFO] [stdout] | [INFO] [stdout] 28 | async fn send_message(user: String, message: String) -> FunctionResult { [INFO] [stdout] | ^^^^^^^^^^^^ ------------ --------------- [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 53 | conv.add_function(send_message(/* std::string::String */, /* std::string::String */))?; [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_response_chunks` found for struct `chatgpt::prelude::ChatMessage` in the current scope [INFO] [stdout] --> examples/streamed_conversation.rs:45:33 [INFO] [stdout] | [INFO] [stdout] 45 | let messages = ChatMessage::from_response_chunks(output); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `chatgpt::prelude::ChatMessage` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chatgpt_rs_fork` (example "bin_persistence") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `send_message_functions` found for struct `Conversation` in the current scope [INFO] [stdout] --> examples/function_calls.rs:57:10 [INFO] [stdout] | [INFO] [stdout] 56 | let response = conv [INFO] [stdout] | ____________________- [INFO] [stdout] 57 | | .send_message_functions("Could you please send a test message to user `maxus`?") [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `send_message` with a similar name [INFO] [stdout] | [INFO] [stdout] 57 - .send_message_functions("Could you please send a test message to user `maxus`?") [INFO] [stdout] 57 + .send_message("Could you please send a test message to user `maxus`?") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/function_calls.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let response = conv [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | println!("Response: {}", response.message().content); [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `response` an explicit type [INFO] [stdout] | [INFO] [stdout] 56 | let response: /* Type */ = conv [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0282, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message_streaming` found for struct `Conversation` in the current scope [INFO] [stdout] --> examples/streamed_conversation.rs:50:10 [INFO] [stdout] | [INFO] [stdout] 49 | let another_stream = conversation [INFO] [stdout] | __________________________- [INFO] [stdout] 50 | | .send_message_streaming("Now what about Kotlin?") [INFO] [stdout] | |_________-^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `send_message` with a similar name [INFO] [stdout] | [INFO] [stdout] 50 - .send_message_streaming("Now what about Kotlin?") [INFO] [stdout] 50 + .send_message("Now what about Kotlin?") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> examples/streamed_conversation.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let another_stream = conversation [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | another_stream [INFO] [stdout] | -------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `another_stream` an explicit type [INFO] [stdout] | [INFO] [stdout] 49 | let another_stream: /* Type */ = conversation [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chatgpt_rs_fork` (example "function_calls") due to 7 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResponseChunk` [INFO] [stdout] --> examples/streamed_conversation.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | Ok(ResponseChunk::Content { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ResponseChunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResponseChunk` [INFO] [stdout] --> examples/streamed_conversation.rs:34:29 [INFO] [stdout] | [INFO] [stdout] 34 | output.push(ResponseChunk::Content { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ResponseChunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResponseChunk` [INFO] [stdout] --> examples/streamed_conversation.rs:54:23 [INFO] [stdout] | [INFO] [stdout] 54 | if let Ok(ResponseChunk::Content { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ResponseChunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chatgpt_rs_fork` (example "streamed_conversation") due to 10 previous errors [INFO] [stdout] error[E0599]: no method named `send_message_streaming` found for struct `ChatGPT` in the current scope [INFO] [stdout] --> src/chatgpt.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 114 | let response = client [INFO] [stdout] | ________________________- [INFO] [stdout] 115 | | .send_message_streaming("Could you give me names of three popular Rust web frameworks?") [INFO] [stdout] | |_____________-^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/client.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct ChatGPT { [INFO] [stdout] | ------------------ method `send_message_streaming` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `send_message` with a similar name [INFO] [stdout] | [INFO] [stdout] 115 - .send_message_streaming("Could you give me names of three popular Rust web frameworks?") [INFO] [stdout] 115 + .send_message("Could you give me names of three popular Rust web frameworks?") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/chatgpt.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | let response = client [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | let collected = response [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `response` an explicit type [INFO] [stdout] | [INFO] [stdout] 114 | let response: /* Type */ = client [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/chatgpt.rs:118:19 [INFO] [stdout] | [INFO] [stdout] 118 | .map(|part| part.unwrap()) [INFO] [stdout] | ^^^^ ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 118 | .map(|part: /* Type */| part.unwrap()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/chatgpt.rs:117:13 [INFO] [stdout] | [INFO] [stdout] 117 | let collected = response [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | assert_eq!(collected.last().unwrap().to_owned(), ResponseChunk::Done); [INFO] [stdout] | --------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `collected` an explicit type [INFO] [stdout] | [INFO] [stdout] 117 | let collected: /* Type */ = response [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `send_message_streaming` found for struct `Conversation` in the current scope [INFO] [stdout] --> src/chatgpt.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 132 | let streamed = conv [INFO] [stdout] | ________________________- [INFO] [stdout] 133 | | .send_message_streaming("Now could you do the same but for Kotlin?") [INFO] [stdout] | |_____________-^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/converse.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct Conversation { [INFO] [stdout] | ----------------------- method `send_message_streaming` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `send_message` with a similar name [INFO] [stdout] | [INFO] [stdout] 133 - .send_message_streaming("Now could you do the same but for Kotlin?") [INFO] [stdout] 133 + .send_message("Now could you do the same but for Kotlin?") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/chatgpt.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | let streamed = conv [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | let collected = streamed [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `streamed` an explicit type [INFO] [stdout] | [INFO] [stdout] 132 | let streamed: /* Type */ = conv [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/chatgpt.rs:136:19 [INFO] [stdout] | [INFO] [stdout] 136 | .map(|part| part.unwrap()) [INFO] [stdout] | ^^^^ ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 136 | .map(|part: /* Type */| part.unwrap()) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/chatgpt.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 135 | let collected = streamed [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | assert_eq!(collected.last().unwrap().to_owned(), ResponseChunk::Done); [INFO] [stdout] | --------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `collected` an explicit type [INFO] [stdout] | [INFO] [stdout] 135 | let collected: /* Type */ = streamed [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chatgpt_rs_fork` (lib test) due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "0c89e1f8a6810d3afdb6b4739325893ecefb06aa7dd3308e4216ba4ab9ca20fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c89e1f8a6810d3afdb6b4739325893ecefb06aa7dd3308e4216ba4ab9ca20fc", kill_on_drop: false }` [INFO] [stdout] 0c89e1f8a6810d3afdb6b4739325893ecefb06aa7dd3308e4216ba4ab9ca20fc