chore: remove unused dependencies (#3049)
This commit is contained in:
Generated
-2
@@ -3457,7 +3457,6 @@ dependencies = [
|
|||||||
"etcetera",
|
"etcetera",
|
||||||
"fs2",
|
"fs2",
|
||||||
"futures",
|
"futures",
|
||||||
"futures-util",
|
|
||||||
"include_dir",
|
"include_dir",
|
||||||
"indoc 2.0.6",
|
"indoc 2.0.6",
|
||||||
"jsonschema",
|
"jsonschema",
|
||||||
@@ -3471,7 +3470,6 @@ dependencies = [
|
|||||||
"mockall",
|
"mockall",
|
||||||
"nanoid",
|
"nanoid",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"paste",
|
|
||||||
"rand 0.8.5",
|
"rand 0.8.5",
|
||||||
"regex",
|
"regex",
|
||||||
"reqwest 0.12.12",
|
"reqwest 0.12.12",
|
||||||
|
|||||||
@@ -54,14 +54,9 @@ base64 = "0.21"
|
|||||||
url = "2.5"
|
url = "2.5"
|
||||||
axum = "0.8.1"
|
axum = "0.8.1"
|
||||||
webbrowser = "0.8"
|
webbrowser = "0.8"
|
||||||
dotenv = "0.15"
|
|
||||||
lazy_static = "1.5"
|
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-subscriber = "0.3"
|
tracing-subscriber = "0.3"
|
||||||
wiremock = "0.6.0"
|
|
||||||
keyring = { version = "3.6.1", features = ["apple-native", "windows-native", "sync-secret-service", "vendored"] }
|
keyring = { version = "3.6.1", features = ["apple-native", "windows-native", "sync-secret-service", "vendored"] }
|
||||||
ctor = "0.2.7"
|
|
||||||
paste = "1.0"
|
|
||||||
serde_yaml = "0.9.34"
|
serde_yaml = "0.9.34"
|
||||||
once_cell = "1.20.2"
|
once_cell = "1.20.2"
|
||||||
etcetera = "0.8.0"
|
etcetera = "0.8.0"
|
||||||
@@ -82,7 +77,6 @@ jsonwebtoken = "9.3.1"
|
|||||||
|
|
||||||
blake3 = "1.5"
|
blake3 = "1.5"
|
||||||
fs2 = "0.4.3"
|
fs2 = "0.4.3"
|
||||||
futures-util = "0.3.31"
|
|
||||||
tokio-stream = "0.1.17"
|
tokio-stream = "0.1.17"
|
||||||
dashmap = "6.1"
|
dashmap = "6.1"
|
||||||
ahash = "0.8"
|
ahash = "0.8"
|
||||||
@@ -102,6 +96,9 @@ mockall = "0.13.1"
|
|||||||
wiremock = "0.6.0"
|
wiremock = "0.6.0"
|
||||||
tokio = { version = "1.43", features = ["full"] }
|
tokio = { version = "1.43", features = ["full"] }
|
||||||
temp-env = "0.3.6"
|
temp-env = "0.3.6"
|
||||||
|
dotenv = "0.15.0"
|
||||||
|
lazy_static = "1.5.0"
|
||||||
|
ctor = "0.2.9"
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "agent"
|
name = "agent"
|
||||||
|
|||||||
@@ -5,9 +5,7 @@ use std::sync::Arc;
|
|||||||
|
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use futures::stream::BoxStream;
|
use futures::stream::BoxStream;
|
||||||
use futures::{FutureExt, Stream, TryStreamExt};
|
use futures::{stream, FutureExt, Stream, StreamExt, TryStreamExt};
|
||||||
use futures_util::stream;
|
|
||||||
use futures_util::stream::StreamExt;
|
|
||||||
use mcp_core::protocol::JsonRpcMessage;
|
use mcp_core::protocol::JsonRpcMessage;
|
||||||
|
|
||||||
use crate::agents::final_output_tool::{FINAL_OUTPUT_CONTINUATION_MESSAGE, FINAL_OUTPUT_TOOL_NAME};
|
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> {
|
async fn post(&self, mut payload: Value) -> Result<Value, ProviderError> {
|
||||||
use crate::providers::utils_universal_openai_stream::{OAIStreamChunk, OAIStreamCollector};
|
use crate::providers::utils_universal_openai_stream::{OAIStreamChunk, OAIStreamCollector};
|
||||||
use futures_util::StreamExt;
|
use futures::StreamExt;
|
||||||
// Detect gpt-4.1 and stream
|
// Detect gpt-4.1 and stream
|
||||||
let model_name = payload.get("model").and_then(|v| v.as_str()).unwrap_or("");
|
let model_name = payload.get("model").and_then(|v| v.as_str()).unwrap_or("");
|
||||||
let stream_only_model = GITHUB_COPILOT_STREAM_MODELS
|
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 base64::Engine;
|
||||||
use chrono::{DateTime, Utc};
|
use chrono::{DateTime, Utc};
|
||||||
use etcetera::{choose_app_strategy, AppStrategy};
|
use etcetera::{choose_app_strategy, AppStrategy};
|
||||||
use lazy_static::lazy_static;
|
use once_cell::sync::Lazy;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
use sha2::Digest;
|
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 tokio::sync::{oneshot, Mutex as TokioMutex};
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
lazy_static! {
|
static OAUTH_MUTEX: Lazy<TokioMutex<()>> = Lazy::new(|| TokioMutex::new(()));
|
||||||
static ref OAUTH_MUTEX: TokioMutex<()> = TokioMutex::new(());
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
struct OidcEndpoints {
|
struct OidcEndpoints {
|
||||||
|
|||||||
Reference in New Issue
Block a user