mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
fixed doc tests
This commit is contained in:
parent
7345657612
commit
2fa983d50d
1 changed files with 4 additions and 4 deletions
|
|
@ -9,10 +9,10 @@
|
|||
//! use hermesllm::clients::endpoints::supported_endpoints;
|
||||
//!
|
||||
//! // Check if we support an endpoint
|
||||
//! use hermesllm::clients::endpoints::SupportedApi;
|
||||
//! assert!(SupportedApi::from_endpoint("/v1/chat/completions").is_some());
|
||||
//! assert!(SupportedApi::from_endpoint("/v1/messages").is_some());
|
||||
//! assert!(!SupportedApi::from_endpoint("/v1/unknown").is_some());
|
||||
//! use hermesllm::clients::endpoints::SupportedAPIs;
|
||||
//! assert!(SupportedAPIs::from_endpoint("/v1/chat/completions").is_some());
|
||||
//! assert!(SupportedAPIs::from_endpoint("/v1/messages").is_some());
|
||||
//! assert!(!SupportedAPIs::from_endpoint("/v1/unknown").is_some());
|
||||
//!
|
||||
//! // Get all supported endpoints
|
||||
//! let endpoints = supported_endpoints();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue