async-llm 0.1.4

A Rust library for OpenAI-compatible APIs
Documentation
Build #1858524 2025-03-12 14:09:43
# rustc version
rustc 1.87.0-nightly (665025243 2025-03-11)# docs.rs version
docsrs 0.6.0 (004a02c4 2025-03-05)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/async-llm-0.1.4/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/async-llm-0.1.4/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250311-1.87.0-nightly-665025243\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 647488ad5441f9a786306caf00e066a31f537515d0f693f0476a0930e6827f4a
[INFO] running `Command { std: "docker" "start" "-a" "647488ad5441f9a786306caf00e066a31f537515d0f693f0476a0930e6827f4a", kill_on_drop: false }`
[INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: gemini, generate, ollama, openai, openrouter
[INFO] [stderr]     If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true`
[INFO] [stderr]     to the [[example]] target configuration of at least one example.
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]  Documenting async-llm v0.1.4 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `DONE`
[INFO] [stderr]   --> src/completions/request.rs:81:175
[INFO] [stderr]    |
[INFO] [stderr] 81 | ...available, with the stream terminated by a data: [DONE] message. [Example Python code](https://cookbook.openai.com/examples/how_to_str...
[INFO] [stderr]    |                                                      ^^^^ no item named `DONE` in scope
[INFO] [stderr]    |
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr]    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `DONE`
[INFO] [stderr]   --> src/completions/request.rs:81:5
[INFO] [stderr]    |
[INFO] [stderr] 81 |     /// Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions).
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: the link appears in this line:
[INFO] [stderr]            
[INFO] [stderr]            Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions).
[INFO] [stderr]                                                                                                                                                                                  ^^^^
[INFO] [stderr]    = note: no item named `DONE` in scope
[INFO] [stderr]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `DONE`
[INFO] [stderr]    --> src/request/chat.rs:118:304
[INFO] [stderr]     |
[INFO] [stderr] 118 | ...available, with the stream terminated by a data: [DONE] message. Example [Python code](https://cookbook.openai.com/examples/how_to_str...
[INFO] [stderr]     |                                                      ^^^^ no item named `DONE` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `DONE`
[INFO] [stderr]  --> src/types/stream.rs:5:72
[INFO] [stderr]   |
[INFO] [stderr] 5 |     /// If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage...
[INFO] [stderr]   |                                                                        ^^^^ no item named `DONE` in scope
[INFO] [stderr]   |
[INFO] [stderr]   = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]   --> src/completions/request.rs:11:5
[INFO] [stderr]    |
[INFO] [stderr] 11 | /// https://platform.openai.com/docs/api-reference/completions/create
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr]    = note: `#[warn(rustdoc::bare_urls)]` on by default
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]    |
[INFO] [stderr] 11 | /// <https://platform.openai.com/docs/api-reference/completions/create>
[INFO] [stderr]    |     +                                                                 +
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]   --> src/request/chat.rs:18:5
[INFO] [stderr]    |
[INFO] [stderr] 18 | /// https://platform.openai.com/docs/api-reference/chat/create
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] help: use an automatic link instead
[INFO] [stderr]    |
[INFO] [stderr] 18 | /// <https://platform.openai.com/docs/api-reference/chat/create>
[INFO] [stderr]    |     +                                                          +
[INFO] [stderr] 
[INFO] [stderr] warning: `async-llm` (lib doc) generated 6 warnings (run `cargo fix --lib -p async-llm` to apply 2 suggestions)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.18s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/async_llm/index.html
[INFO] running `Command { std: "docker" "inspect" "647488ad5441f9a786306caf00e066a31f537515d0f693f0476a0930e6827f4a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "647488ad5441f9a786306caf00e066a31f537515d0f693f0476a0930e6827f4a", kill_on_drop: false }`
[INFO] [stdout] 647488ad5441f9a786306caf00e066a31f537515d0f693f0476a0930e6827f4a