[INFO] fetching crate chatgpt_rs 1.2.3... [INFO] checking chatgpt_rs-1.2.3 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate chatgpt_rs 1.2.3 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate chatgpt_rs 1.2.3 [INFO] finished tweaking crates.io crate chatgpt_rs 1.2.3 [INFO] tweaked toml for crates.io crate chatgpt_rs 1.2.3 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate chatgpt_rs 1.2.3 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate chatgpt_rs 1.2.3 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gpt_fn_macros v1.0.0 [INFO] [stderr] Downloaded dyn-clone v1.0.13 [INFO] [stderr] Downloaded schemars v0.8.13 [INFO] [stderr] Downloaded schemars_derive v0.8.13 [INFO] [stderr] Downloaded postcard v1.0.7 [INFO] [stderr] Downloaded syn v2.0.33 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe9f56c527ba01d06ec6eb59e0f129068b1bddc6b00e3aee5bb2da7eaf2ed1ba [INFO] running `Command { std: "docker" "start" "-a" "fe9f56c527ba01d06ec6eb59e0f129068b1bddc6b00e3aee5bb2da7eaf2ed1ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe9f56c527ba01d06ec6eb59e0f129068b1bddc6b00e3aee5bb2da7eaf2ed1ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe9f56c527ba01d06ec6eb59e0f129068b1bddc6b00e3aee5bb2da7eaf2ed1ba", kill_on_drop: false }` [INFO] [stdout] fe9f56c527ba01d06ec6eb59e0f129068b1bddc6b00e3aee5bb2da7eaf2ed1ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 120be4e4fdde8ade88811c0625ad2147a71de190bb23bfbb94638cb41c668d59 [INFO] running `Command { std: "docker" "start" "-a" "120be4e4fdde8ade88811c0625ad2147a71de190bb23bfbb94638cb41c668d59", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking spin v0.5.2 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking untrusted v0.7.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling rustls v0.21.7 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Compiling thiserror v1.0.48 [INFO] [stderr] Checking base64 v0.21.4 [INFO] [stderr] Checking encoding_rs v0.8.33 [INFO] [stderr] Checking ipnet v2.8.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking webpki-roots v0.25.2 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling syn v2.0.33 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Checking rustls-pemfile v1.0.3 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling thiserror-impl v1.0.48 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking sct v0.7.0 [INFO] [stderr] Checking rustls-webpki v0.101.5 [INFO] [stderr] Compiling darling_core v0.14.4 [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] Checking derive_builder v0.12.0 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking url v2.4.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking hyper-rustls v0.24.1 [INFO] [stderr] Checking reqwest v0.11.20 [INFO] [stderr] Checking chatgpt_rs v1.2.3 (/opt/rustwide/workdir) [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 `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[E0599]: no method named `send_message_streaming` found for struct `Conversation` in the current scope [INFO] [stdout] --> src/chatgpt.rs:130:14 [INFO] [stdout] | [INFO] [stdout] 129 | let streamed = conv [INFO] [stdout] | ________________________- [INFO] [stdout] 130 | | .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] 130 - .send_message_streaming("Now could you do the same but for Kotlin?") [INFO] [stdout] 130 + .send_message("Now could you do the same but for Kotlin?") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chatgpt_rs` (lib test) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0432]: unresolved import `futures_util` [INFO] [stdout] --> examples/streamed.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[E0599]: no method named `send_message_streaming` found for struct `chatgpt::client::ChatGPT` in the current scope [INFO] [stdout] --> examples/streamed.rs:18:10 [INFO] [stdout] | [INFO] [stdout] 17 | let stream = client [INFO] [stdout] | __________________- [INFO] [stdout] 18 | | .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] 18 - .send_message_streaming("Could you name me a few popular Rust backend server frameworks?") [INFO] [stdout] 18 + .send_message("Could you name me a few popular Rust backend server frameworks?") [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ResponseChunk` [INFO] [stdout] --> examples/streamed.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | if let ResponseChunk::Content { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ResponseChunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [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] [stderr] error: could not compile `chatgpt_rs` (example "streamed") due to 3 previous errors [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: 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[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[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] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chatgpt_rs` (example "bin_persistence") due to 2 previous errors [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[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] [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[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[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[E0433]: failed to resolve: use of undeclared type `ResponseChunk` [INFO] [stdout] --> examples/streamed_conversation.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | 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:55:17 [INFO] [stdout] | [INFO] [stdout] 55 | ResponseChunk::Content { [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `ResponseChunk` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [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] [stderr] error: could not compile `chatgpt_rs` (example "streamed_conversation") due to 8 previous errors [INFO] [stdout] Some errors have detailed explanations: E0061, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `chatgpt_rs` (example "function_calls") due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "120be4e4fdde8ade88811c0625ad2147a71de190bb23bfbb94638cb41c668d59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "120be4e4fdde8ade88811c0625ad2147a71de190bb23bfbb94638cb41c668d59", kill_on_drop: false }` [INFO] [stdout] 120be4e4fdde8ade88811c0625ad2147a71de190bb23bfbb94638cb41c668d59