chore: remove unused dependencies (#3049)
This commit is contained in:
@@ -5,9 +5,7 @@ use std::sync::Arc;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use futures::stream::BoxStream;
|
||||
use futures::{FutureExt, Stream, TryStreamExt};
|
||||
use futures_util::stream;
|
||||
use futures_util::stream::StreamExt;
|
||||
use futures::{stream, FutureExt, Stream, StreamExt, TryStreamExt};
|
||||
use mcp_core::protocol::JsonRpcMessage;
|
||||
|
||||
use crate::agents::final_output_tool::{FINAL_OUTPUT_CONTINUATION_MESSAGE, FINAL_OUTPUT_TOOL_NAME};
|
||||
|
||||
@@ -139,7 +139,7 @@ impl GithubCopilotProvider {
|
||||
|
||||
async fn post(&self, mut payload: Value) -> Result<Value, ProviderError> {
|
||||
use crate::providers::utils_universal_openai_stream::{OAIStreamChunk, OAIStreamCollector};
|
||||
use futures_util::StreamExt;
|
||||
use futures::StreamExt;
|
||||
// Detect gpt-4.1 and stream
|
||||
let model_name = payload.get("model").and_then(|v| v.as_str()).unwrap_or("");
|
||||
let stream_only_model = GITHUB_COPILOT_STREAM_MODELS
|
||||
|
||||
@@ -3,7 +3,7 @@ use axum::{extract::Query, response::Html, routing::get, Router};
|
||||
use base64::Engine;
|
||||
use chrono::{DateTime, Utc};
|
||||
use etcetera::{choose_app_strategy, AppStrategy};
|
||||
use lazy_static::lazy_static;
|
||||
use once_cell::sync::Lazy;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::Value;
|
||||
use sha2::Digest;
|
||||
@@ -11,9 +11,7 @@ use std::{collections::HashMap, fs, net::SocketAddr, path::PathBuf, sync::Arc};
|
||||
use tokio::sync::{oneshot, Mutex as TokioMutex};
|
||||
use url::Url;
|
||||
|
||||
lazy_static! {
|
||||
static ref OAUTH_MUTEX: TokioMutex<()> = TokioMutex::new(());
|
||||
}
|
||||
static OAUTH_MUTEX: Lazy<TokioMutex<()>> = Lazy::new(|| TokioMutex::new(()));
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
struct OidcEndpoints {
|
||||
|
||||
Reference in New Issue
Block a user