[INFO] fetching crate openai_dive 0.2.4...
[INFO] testing openai_dive-0.2.4 against 1.69.0 for beta-1.70-1
[INFO] extracting crate openai_dive 0.2.4 into /workspace/builds/worker-1-tc1/source
[INFO] validating manifest of crates.io crate openai_dive 0.2.4 on toolchain 1.69.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.69.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate openai_dive 0.2.4
[INFO] finished tweaking crates.io crate openai_dive 0.2.4
[INFO] tweaked toml for crates.io crate openai_dive 0.2.4 written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" __CARGO_TEST_CHANNEL_OVERRIDE_DO_NOT_USE_THIS="nightly" "/workspace/cargo-home/bin/cargo" "+1.69.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.69.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[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:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+1.69.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0d3e709127864d561d7db60783beebc30219ce6c666a6e5802c8d7c0f209712e
[INFO] running `Command { std: "docker" "start" "-a" "0d3e709127864d561d7db60783beebc30219ce6c666a6e5802c8d7c0f209712e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0d3e709127864d561d7db60783beebc30219ce6c666a6e5802c8d7c0f209712e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0d3e709127864d561d7db60783beebc30219ce6c666a6e5802c8d7c0f209712e", kill_on_drop: false }`
[INFO] [stdout] 0d3e709127864d561d7db60783beebc30219ce6c666a6e5802c8d7c0f209712e
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+1.69.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d0034024a2d7267081264e80289fc6e8f626026a3153419976d672a2b4704b93
[INFO] running `Command { std: "docker" "start" "-a" "d0034024a2d7267081264e80289fc6e8f626026a3153419976d672a2b4704b93", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.56
[INFO] [stderr]    Compiling libc v0.2.142
[INFO] [stderr]    Compiling tokio v1.28.0
[INFO] [stderr]    Compiling futures-task v0.3.28
[INFO] [stderr]    Compiling unicase v2.6.0
[INFO] [stderr]    Compiling indexmap v1.9.3
[INFO] [stderr]    Compiling futures-util v0.3.28
[INFO] [stderr]    Compiling tracing v0.1.37
[INFO] [stderr]    Compiling tinyvec_macros v0.1.1
[INFO] [stderr]    Compiling futures-channel v0.3.28
[INFO] [stderr]    Compiling tinyvec v1.6.0
[INFO] [stderr]    Compiling http-body v0.4.5
[INFO] [stderr]    Compiling unicode-bidi v0.3.13
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling mime_guess v2.0.4
[INFO] [stderr]    Compiling quote v1.0.26
[INFO] [stderr]    Compiling unicode-normalization v0.1.22
[INFO] [stderr]    Compiling encoding_rs v0.8.32
[INFO] [stderr]    Compiling syn v2.0.15
[INFO] [stderr]    Compiling mio v0.8.6
[INFO] [stderr]    Compiling socket2 v0.4.9
[INFO] [stderr]    Compiling openssl-sys v0.9.87
[INFO] [stderr]    Compiling idna v0.3.0
[INFO] [stderr]    Compiling base64 v0.21.0
[INFO] [stderr]    Compiling ipnet v2.7.2
[INFO] [stderr]    Compiling url v2.3.1
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling serde_derive v1.0.160
[INFO] [stderr]    Compiling openssl v0.10.52
[INFO] [stderr]    Compiling tokio-util v0.7.8
[INFO] [stderr]    Compiling h2 v0.3.18
[INFO] [stderr]    Compiling serde v1.0.160
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling hyper v0.14.26
[INFO] [stderr]    Compiling serde_json v1.0.96
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling hyper-tls v0.5.0
[INFO] [stderr]    Compiling reqwest v0.11.17
[INFO] [stderr]    Compiling openai_dive v0.2.4 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::v1::error::APIError`
[INFO] [stdout]  --> src/v1/resources/image.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::v1::error::APIError;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CancelFineTuneParameters` is never constructed
[INFO] [stdout]   --> src/v1/endpoints/fine_tunes.rs:47:20
[INFO] [stdout]    |
[INFO] [stdout] 47 |             struct CancelFineTuneParameters {}
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 49.03s
[INFO] running `Command { std: "docker" "inspect" "d0034024a2d7267081264e80289fc6e8f626026a3153419976d672a2b4704b93", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d0034024a2d7267081264e80289fc6e8f626026a3153419976d672a2b4704b93", kill_on_drop: false }`
[INFO] [stdout] d0034024a2d7267081264e80289fc6e8f626026a3153419976d672a2b4704b93
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+1.69.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9b1c7c712da2f29fd80f8f62dfcbdf15a7bf4e8bd11ff82e37ed114938ad2c54
[INFO] running `Command { std: "docker" "start" "-a" "9b1c7c712da2f29fd80f8f62dfcbdf15a7bf4e8bd11ff82e37ed114938ad2c54", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `crate::v1::error::APIError`
[INFO] [stdout]  --> src/v1/resources/image.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::v1::error::APIError;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CancelFineTuneParameters` is never constructed
[INFO] [stdout]   --> src/v1/endpoints/fine_tunes.rs:47:20
[INFO] [stdout]    |
[INFO] [stdout] 47 |             struct CancelFineTuneParameters {}
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling openai_dive v0.2.4 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::v1::error::APIError`
[INFO] [stdout]  --> src/v1/resources/image.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::v1::error::APIError;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `CancelFineTuneParameters` is never constructed
[INFO] [stdout]   --> src/v1/endpoints/fine_tunes.rs:47:20
[INFO] [stdout]    |
[INFO] [stdout] 47 |             struct CancelFineTuneParameters {}
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 2 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 1.63s
[INFO] running `Command { std: "docker" "inspect" "9b1c7c712da2f29fd80f8f62dfcbdf15a7bf4e8bd11ff82e37ed114938ad2c54", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9b1c7c712da2f29fd80f8f62dfcbdf15a7bf4e8bd11ff82e37ed114938ad2c54", kill_on_drop: false }`
[INFO] [stdout] 9b1c7c712da2f29fd80f8f62dfcbdf15a7bf4e8bd11ff82e37ed114938ad2c54
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:97d61d7686bf65f8ecb15491ab51835e82dc9176a96a831f143a431b191fc501" "/opt/rustwide/cargo-home/bin/cargo" "+1.69.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] e27fb37501bf4be8e08c6c39e28d99c7af3543d41da397633a0c5b221d6f8f79
[INFO] running `Command { std: "docker" "start" "-a" "e27fb37501bf4be8e08c6c39e28d99c7af3543d41da397633a0c5b221d6f8f79", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `crate::v1::error::APIError`
[INFO] [stderr]  --> src/v1/resources/image.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use crate::v1::error::APIError;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: struct `CancelFineTuneParameters` is never constructed
[INFO] [stderr]   --> src/v1/endpoints/fine_tunes.rs:47:20
[INFO] [stderr]    |
[INFO] [stderr] 47 |             struct CancelFineTuneParameters {}
[INFO] [stderr]    |                    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `openai_dive` (lib) generated 2 warnings (run `cargo fix --lib -p openai_dive` to apply 1 suggestion)
[INFO] [stderr] warning: `openai_dive` (lib test) generated 2 warnings (2 duplicates)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.12s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/openai_dive-62169c81b30cb2a1)
[INFO] [stderr]    Doc-tests openai_dive
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 22 tests
[INFO] [stdout] test src/lib.rs - (line 405) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 121) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 251) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 362) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 164) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 520) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 556) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 301) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 442) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 217) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 587) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 656) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 480) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 712) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 71) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 681) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 622) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 762) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 96) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 737) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 803) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 855) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 405) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:409:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:411:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:410:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 121) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:125:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:127:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:126:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 251) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:255:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:257:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:256:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 362) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `openai_dive::v1::resources::chat_completion::SimpleChatCompletionParameters`
[INFO] [stdout]  --> src/lib.rs:364:51
[INFO] [stdout]   |
[INFO] [stdout] 4 | use openai_dive::v1::resources::chat_completion::{SimpleChatCompletionParameters, ChatMessage, Role};
[INFO] [stdout]   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |                                                   |
[INFO] [stdout]   |                                                   no `SimpleChatCompletionParameters` in `v1::resources::chat_completion`
[INFO] [stdout]   |                                                   help: a similar name exists in the module: `ChatCompletionParameters`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:366:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:368:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `create_simple` found for struct `Chat` in the current scope
[INFO] [stdout]   --> src/lib.rs:389:32
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let result = client.chat().create_simple(parameters).await.unwrap();
[INFO] [stdout]    |                                ^^^^^^^^^^^^^ method not found in `Chat<'_>`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:367:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 164) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `futures`
[INFO] [stdout]  --> src/lib.rs:165:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use futures::StreamExt;
[INFO] [stdout]   |     ^^^^^^^ use of undeclared crate or module `futures`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:169:10
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:171:19
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `create_stream` found for struct `Completions` in the current scope
[INFO] [stdout]   --> src/lib.rs:192:43
[INFO] [stdout]    |
[INFO] [stdout] 30 |     let mut stream = client.completions().create_stream(parameters).await.unwrap();
[INFO] [stdout]    |                                           ^^^^^^^^^^^^^ method not found in `Completions<'_>`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:170:1
[INFO] [stdout]   |
[INFO] [stdout] 8 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 520) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:524:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:526:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `save` found for struct `ImageResponse` in the current scope
[INFO] [stdout]   --> src/lib.rs:540:25
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let _paths = result.save("./images").await.unwrap();
[INFO] [stdout]    |                         ^^^^ method not found in `ImageResponse`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:525:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0599, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 556) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:560:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:562:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:561:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 301) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:305:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:307:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `create_stream` found for struct `Chat` in the current scope
[INFO] [stdout]   --> src/lib.rs:335:36
[INFO] [stdout]    |
[INFO] [stdout] 36 |     let mut stream = client.chat().create_stream(parameters).await.unwrap();
[INFO] [stdout]    |                                    ^^^^^^^^^^^^^ method not found in `Chat<'_>`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:306:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0599, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 442) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:446:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:448:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `save` found for struct `ImageResponse` in the current scope
[INFO] [stdout]   --> src/lib.rs:462:25
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let _paths = result.save("./images").await.unwrap();
[INFO] [stdout]    |                         ^^^^ method not found in `ImageResponse`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:447:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0599, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 217) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `futures`
[INFO] [stdout]  --> src/lib.rs:218:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use futures::StreamExt;
[INFO] [stdout]   |     ^^^^^^^ use of undeclared crate or module `futures`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:222:10
[INFO] [stdout]   |
[INFO] [stdout] 7 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:224:19
[INFO] [stdout]   |
[INFO] [stdout] 9 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `create_simple` found for struct `Completions` in the current scope
[INFO] [stdout]   --> src/lib.rs:235:39
[INFO] [stdout]    |
[INFO] [stdout] 20 |     let result = client.completions().create_simple(parameters).await.unwrap();
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^ method not found in `Completions<'_>`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:223:1
[INFO] [stdout]   |
[INFO] [stdout] 8 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 587) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:591:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:593:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:592:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 656) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:659:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:661:19
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:660:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 480) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:484:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:486:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `save` found for struct `ImageResponse` in the current scope
[INFO] [stdout]   --> src/lib.rs:502:25
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let _paths = result.save("./images").await.unwrap();
[INFO] [stdout]    |                         ^^^^ method not found in `ImageResponse`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:485:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0599, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 712) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:715:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:717:19
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:716:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 71) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:74:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:76:19
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:75:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 681) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `openai_dive::v1::UploadFileParameters`
[INFO] [stdout]  --> src/lib.rs:683:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use openai_dive::v1::UploadFileParameters;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `UploadFileParameters` in `v1`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct instead
[INFO] [stdout]   |
[INFO] [stdout] 4 | use openai_dive::v1::resources::file::UploadFileParameters;
[INFO] [stdout]   |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:685:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:687:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:686:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 622) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:626:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:628:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:627:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 762) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:765:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:767:19
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:766:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 96) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:99:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:101:19
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:100:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 737) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:740:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:742:19
[INFO] [stdout]   |
[INFO] [stdout] 7 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:741:1
[INFO] [stdout]   |
[INFO] [stdout] 6 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 803) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: could not find `main` in `tokio`
[INFO] [stdout]  --> src/lib.rs:807:10
[INFO] [stdout]   |
[INFO] [stdout] 6 | #[tokio::main]
[INFO] [stdout]   |          ^^^^ could not find `main` in `tokio`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `env`
[INFO] [stdout]  --> src/lib.rs:809:19
[INFO] [stdout]   |
[INFO] [stdout] 8 |     let api_key = env::var("OPENAI_API_KEY").expect("$OPENAI_API_KEY is not set");
[INFO] [stdout]   |                   ^^^ use of undeclared crate or module `env`
[INFO] [stdout] 
[INFO] [stdout] error[E0752]: `main` function is not allowed to be `async`
[INFO] [stdout]  --> src/lib.rs:808:1
[INFO] [stdout]   |
[INFO] [stdout] 7 | async fn main() {
[INFO] [stdout]   | ^^^^^^^^^^^^^^^ `main` function is not allowed to be `async`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0752.
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 855) stdout ----
[INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Client` in this scope
[INFO] [stdout]  --> src/lib.rs:860:14
[INFO] [stdout]   |
[INFO] [stdout] 7 | let client = Client {
[INFO] [stdout]   |              ^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 | use openai_dive::v1::api::Client;
[INFO] [stdout]   |
[INFO] [stdout] 2 | use reqwest::Client;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:857:60
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_855_0() {
[INFO] [stdout]   |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] 3 | let http_client = reqwest::Client::builder()
[INFO] [stdout] 4 |     .proxy(reqwest::Proxy::https("socks5://127.0.0.1:1086")?)
[INFO] [stdout]   |                                                            ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<Result<Infallible, reqwest::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
[INFO] [stdout]  --> src/lib.rs:858:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_855_0() {
[INFO] [stdout]   |                                      ----------------------------------- this function should return `Result` or `Option` to accept `?`
[INFO] [stdout] ...
[INFO] [stdout] 5 |     .build()?;
[INFO] [stdout]   |             ^ cannot use the `?` operator in a function that returns `()`
[INFO] [stdout]   |
[INFO] [stdout]   = help: the trait `FromResidual<Result<Infallible, reqwest::Error>>` is not implemented for `()`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0277, E0422.
[INFO] [stdout] For more information about an error, try `rustc --explain E0277`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 121)
[INFO] [stdout]     src/lib.rs - (line 164)
[INFO] [stdout]     src/lib.rs - (line 217)
[INFO] [stdout]     src/lib.rs - (line 251)
[INFO] [stdout]     src/lib.rs - (line 301)
[INFO] [stdout]     src/lib.rs - (line 362)
[INFO] [stdout]     src/lib.rs - (line 405)
[INFO] [stdout]     src/lib.rs - (line 442)
[INFO] [stdout]     src/lib.rs - (line 480)
[INFO] [stdout]     src/lib.rs - (line 520)
[INFO] [stdout]     src/lib.rs - (line 556)
[INFO] [stdout]     src/lib.rs - (line 587)
[INFO] [stdout]     src/lib.rs - (line 622)
[INFO] [stdout]     src/lib.rs - (line 656)
[INFO] [stdout]     src/lib.rs - (line 681)
[INFO] [stdout]     src/lib.rs - (line 71)
[INFO] [stdout]     src/lib.rs - (line 712)
[INFO] [stdout]     src/lib.rs - (line 737)
[INFO] [stdout]     src/lib.rs - (line 762)
[INFO] [stdout]     src/lib.rs - (line 803)
[INFO] [stdout]     src/lib.rs - (line 855)
[INFO] [stdout]     src/lib.rs - (line 96)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 22 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.69s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "e27fb37501bf4be8e08c6c39e28d99c7af3543d41da397633a0c5b221d6f8f79", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e27fb37501bf4be8e08c6c39e28d99c7af3543d41da397633a0c5b221d6f8f79", kill_on_drop: false }`
[INFO] [stdout] e27fb37501bf4be8e08c6c39e28d99c7af3543d41da397633a0c5b221d6f8f79
