Move OpenAI subscription code to separate crate (#61787)
Release Notes: - N/A
This commit is contained in:
1 parent
44f82ff260
commit
be07d51f8d
7 files changed
+1492
-1338
No files matched your search
Generated
+25
-4
@@ -9887,10 +9887,10 @@ dependencies = [
|
||||
"log",
|
||||
"menu",
|
||||
"mistral",
|
||||
"oauth_callback_server",
|
||||
"ollama",
|
||||
"open_ai",
|
||||
"open_router",
|
||||
"openai_subscribed",
|
||||
"opencode",
|
||||
"parking_lot",
|
||||
"pretty_assertions",
|
||||
@@ -9900,13 +9900,10 @@ dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
"settings",
|
||||
"sha2",
|
||||
"smol",
|
||||
"strum 0.27.2",
|
||||
"tokio",
|
||||
"ui",
|
||||
"ui_input",
|
||||
"url",
|
||||
"util",
|
||||
"x_ai",
|
||||
]
|
||||
@@ -12464,6 +12461,30 @@ dependencies = [
|
||||
"thiserror 2.0.17",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "openai_subscribed"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"base64 0.22.1",
|
||||
"credentials_provider",
|
||||
"futures 0.3.32",
|
||||
"gpui",
|
||||
"http_client",
|
||||
"language_model",
|
||||
"log",
|
||||
"oauth_callback_server",
|
||||
"open_ai",
|
||||
"parking_lot",
|
||||
"rand 0.9.4",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sha2",
|
||||
"smol",
|
||||
"url",
|
||||
"util",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "opencode"
|
||||
version = "0.1.0"
|
||||
|
||||
@@ -145,6 +145,7 @@ members = [
|
||||
"crates/oauth_callback_server",
|
||||
"crates/ollama",
|
||||
"crates/onboarding",
|
||||
"crates/openai_subscribed",
|
||||
"crates/opencode",
|
||||
"crates/open_ai",
|
||||
"crates/open_path_prompt",
|
||||
@@ -410,6 +411,7 @@ notifications = { path = "crates/notifications" }
|
||||
oauth_callback_server = { path = "crates/oauth_callback_server" }
|
||||
ollama = { path = "crates/ollama" }
|
||||
onboarding = { path = "crates/onboarding" }
|
||||
openai_subscribed = { path = "crates/openai_subscribed" }
|
||||
opencode = { path = "crates/opencode" }
|
||||
open_ai = { path = "crates/open_ai" }
|
||||
open_path_prompt = { path = "crates/open_path_prompt" }
|
||||
|
||||
@@ -49,24 +49,21 @@ lmstudio = { workspace = true, features = ["schemars"] }
|
||||
log.workspace = true
|
||||
menu.workspace = true
|
||||
mistral = { workspace = true, features = ["schemars"] }
|
||||
oauth_callback_server.workspace = true
|
||||
ollama = { workspace = true, features = ["schemars"] }
|
||||
open_ai = { workspace = true, features = ["schemars"] }
|
||||
openai_subscribed.workspace = true
|
||||
opencode = { workspace = true, features = ["schemars"] }
|
||||
open_router = { workspace = true, features = ["schemars"] }
|
||||
rand.workspace = true
|
||||
release_channel.workspace = true
|
||||
schemars.workspace = true
|
||||
sha2.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
settings.workspace = true
|
||||
smol.workspace = true
|
||||
strum.workspace = true
|
||||
tokio = { workspace = true, features = ["rt", "rt-multi-thread"] }
|
||||
ui.workspace = true
|
||||
ui_input.workspace = true
|
||||
url.workspace = true
|
||||
util.workspace = true
|
||||
x_ai = { workspace = true, features = ["schemars"] }
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,36 @@
|
||||
[package]
|
||||
name = "openai_subscribed"
|
||||
version = "0.1.0"
|
||||
edition.workspace = true
|
||||
publish.workspace = true
|
||||
license = "GPL-3.0-or-later"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[lib]
|
||||
path = "src/openai_subscribed.rs"
|
||||
|
||||
[dependencies]
|
||||
anyhow.workspace = true
|
||||
base64.workspace = true
|
||||
credentials_provider.workspace = true
|
||||
futures.workspace = true
|
||||
gpui.workspace = true
|
||||
http_client.workspace = true
|
||||
language_model.workspace = true
|
||||
log.workspace = true
|
||||
oauth_callback_server.workspace = true
|
||||
open_ai.workspace = true
|
||||
rand.workspace = true
|
||||
serde.workspace = true
|
||||
serde_json.workspace = true
|
||||
sha2.workspace = true
|
||||
smol.workspace = true
|
||||
url.workspace = true
|
||||
util.workspace = true
|
||||
|
||||
[dev-dependencies]
|
||||
gpui = { workspace = true, features = ["test-support"] }
|
||||
http_client = { workspace = true, features = ["test-support"] }
|
||||
parking_lot.workspace = true
|
||||
+1
@@ -0,0 +1 @@
|
||||
../../LICENSE-GPL
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user