1. Only showing results from lib.rs

    Clear filter to show all search results

  2. Dec 8, 2024A simple library to handle REST errors, with a derive macro to generate the error type. It also provides a compatibility layer with actix-web. | Rust/Cargo package
  3. Jan 6, 2025Related: http-api-problem-derive See also: problem_details, tor-error, api-response, prometheus-http-query, actix-web-thiserror, activitypub_federation, firebase-auth, windows-result, loki-api, fire-http-api, deserr. Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski.
  4. 4 days agoThis becomes an issue when relying on serde for deserializing user-provided payloads—e.g. a request body for a REST API. There may be several errors in the submitted payload, but serde_json will only report the first one it encounters before stopping deserialization. The API consumer is then forced into a slow and frustrating feedback loop:
  5. Feb 3, 2025Configuration. Before you can use the crate, you need to configure it through the AiConfig structure. This configuration tells the system: Which Framework provider to use (Framework::OpenAI, Framework::Anthropic, or Framework::Ollama).The specific model you want to query, e.g., "chatgpt-4o-latest" for OpenAI or "claude-2" for Anthropic. (Optional) Maximum tokens for the response output.
  6. 3 days agoSee also: openai_dive, async-openai, trf, allms, rs_openai, rusty-openai, kind-openai, ja, mini-openai, well, xtalk Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski.It contains data from multiple sources, including heuristics, and manually curated data.Content of this page is not necessarily endorsed by the authors of the crate.
  7. Jul 23, 2024("Error: {error}");} Ok(())} This example demonstrates how to use tools with the Anthropic API to perform specific tasks, such as getting the weather. Fields Explanation. version: (Optional) Specifies the version of the API to use. auth: Sets the authentication token for the API. model: Defines the model to use for generating responses.
  8. Jan 24, 2025Procedural macro for custom WAMP errors | Rust/Cargo package. Lib.rs › Rust patterns ... Procedural macro for custom WAMP errors. by jackson-nestelroad. Install; API reference; GitHub repo (jackson-nestelroad) 1 unstable release. 0.1.0 Jan 24, 2025 #1501 in Rust patterns. 137 downloads per month Used in battler-wamprat. MIT license 13KB ...
  9. Can’t find what you’re looking for?

    Help us improve DuckDuckGo searches with your feedback

Custom date rangeX