Skip to content

Commit 23bf3d7

Browse files
authored
chore: remove unused ai-function (#18513)
* chore: remove unused ai-function * chore: remove remaining AI function references from tests Remove ai_embedding_vector and ai_text_completion references from: - Golden test file function_list.txt - SQL generator exclusion list Fixes test failure: databend-common-functions::it scalars::list_all_builtin_functions Co-Authored-By: [email protected]
1 parent 06d5848 commit 23bf3d7

File tree

29 files changed

+0
-991
lines changed

29 files changed

+0
-991
lines changed

Cargo.lock

Lines changed: 0 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ members = [
2323
"src/common/http",
2424
"src/common/io",
2525
"src/common/metrics",
26-
"src/common/openai",
2726
"src/common/tracing",
2827
"src/common/storage",
2928
"src/common/vector",
@@ -160,7 +159,6 @@ databend-common-meta-store = { path = "src/meta/store" }
160159
databend-common-meta-types = { path = "src/meta/types" }
161160
databend-common-metrics = { path = "src/common/metrics" }
162161
databend-common-native = { path = "src/common/native" }
163-
databend-common-openai = { path = "src/common/openai" }
164162
databend-common-pipeline-core = { path = "src/query/pipeline/core" }
165163
databend-common-pipeline-sinks = { path = "src/query/pipeline/sinks" }
166164
databend-common-pipeline-sources = { path = "src/query/pipeline/sources" }
@@ -401,7 +399,6 @@ num_cpus = "1.17"
401399
object = "0.36.5"
402400
object_store_opendal = { version = "0.52.0" }
403401
once_cell = "1.15.0"
404-
openai_api_rust = "0.1"
405402
opendal = { version = "0.53.2", features = [
406403
"layers-fastrace",
407404
"layers-prometheus-client",
@@ -662,7 +659,6 @@ color-eyre = { git = "https://github.com/eyre-rs/eyre.git", rev = "e5d92c3" }
662659
deltalake = { git = "https://github.com/delta-io/delta-rs", rev = "9954bff" }
663660
display-more = { git = "https://github.com/databendlabs/display-more", tag = "v0.2.0" }
664661
map-api = { git = "https://github.com/databendlabs/map-api", tag = "v0.2.7" }
665-
openai_api_rust = { git = "https://github.com/datafuse-extras/openai-api", rev = "819a0ed" }
666662
openraft = { git = "https://github.com/databendlabs/openraft", tag = "v0.10.0-alpha.9" }
667663
orc-rust = { git = "https://github.com/datafuse-extras/orc-rust", rev = "d82aa6d" }
668664
recursive = { git = "https://github.com/datafuse-extras/recursive.git", rev = "6af35a1" }

src/common/metrics/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pub use crate::metrics::http;
3030
pub use crate::metrics::interpreter;
3131
pub use crate::metrics::lock;
3232
pub use crate::metrics::mysql;
33-
pub use crate::metrics::openai;
3433
pub use crate::metrics::session;
3534
pub use crate::metrics::storage;
3635
pub use crate::metrics::system;

src/common/metrics/src/metrics/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pub mod http;
1919
pub mod interpreter;
2020
pub mod lock;
2121
pub mod mysql;
22-
pub mod openai;
2322
pub mod session;
2423
pub mod storage;
2524
pub mod system;

src/common/metrics/src/metrics/openai.rs

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/common/openai/Cargo.toml

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/common/openai/src/completion.rs

Lines changed: 0 additions & 115 deletions
This file was deleted.

src/common/openai/src/embedding.rs

Lines changed: 0 additions & 67 deletions
This file was deleted.

src/common/openai/src/lib.rs

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)