mirror of
https://github.com/katanemo/plano.git
synced 2026-07-05 15:52:12 +02:00
fmt/clippy
This commit is contained in:
parent
29503ba95e
commit
22fde1f333
6 changed files with 6 additions and 8 deletions
|
|
@ -7,8 +7,6 @@ pub mod providers;
|
|||
mod tests {
|
||||
use crate::providers::openai::types::ChatCompletionsRequest;
|
||||
|
||||
|
||||
|
||||
#[test]
|
||||
fn openai_builder() {
|
||||
let request = ChatCompletionsRequest::builder("gpt-3.5-turbo", vec![])
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
pub mod types;
|
||||
pub mod builder;
|
||||
pub mod types;
|
||||
|
||||
pub type OpenAIRequestBuilder = builder::OpenAIRequestBuilder;
|
||||
|
|
|
|||
|
|
@ -367,7 +367,8 @@ data: [DONE]"#;
|
|||
"stream": true
|
||||
} "#;
|
||||
|
||||
let chat_completions_request: ChatCompletionsRequest = ChatCompletionsRequest::try_from(CHAT_COMPLETIONS_REQUEST.as_bytes())
|
||||
.expect("Failed to parse ChatCompletionsRequest");
|
||||
let chat_completions_request: ChatCompletionsRequest =
|
||||
ChatCompletionsRequest::try_from(CHAT_COMPLETIONS_REQUEST.as_bytes())
|
||||
.expect("Failed to parse ChatCompletionsRequest");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue