@@ -11,8 +11,6 @@ use tracing::{instrument, warn};
11
11
use crate :: apps:: types:: { App , AppConfig , AppType , MergedConfigs } ;
12
12
13
13
lazy_static ! {
14
- pub static ref AI : App =
15
- serde_yaml:: from_str( include_str!( "ai.yaml" ) ) . expect( "ai.yaml not found" ) ;
16
14
pub static ref HTTP : App =
17
15
serde_yaml:: from_str( include_str!( "http.yaml" ) ) . expect( "http.yaml not found" ) ;
18
16
pub static ref RESTAPI : App =
@@ -45,22 +43,6 @@ pub fn merge_app_reqs(
45
43
if let Some ( apps) = user_apps {
46
44
for app in apps {
47
45
match app {
48
- AppType :: AIProxy ( _config) => {
49
- let ai = AI . clone ( ) ;
50
- let ai_app_svc = ai. app_services . unwrap ( ) [ 0 ] . clone ( ) ;
51
- // the AI appService is a proxy container to Tembo AI
52
- // and its configuration should not be modified
53
- user_app_services. push ( ai_app_svc) ;
54
- if let Some ( extensions) = ai. extensions {
55
- fin_app_extensions. extend ( extensions) ;
56
- }
57
- if let Some ( trunks) = ai. trunk_installs {
58
- fin_app_trunk_installs. extend ( trunks) ;
59
- }
60
- if let Some ( pg_cfg) = ai. postgres_config {
61
- final_pg_configs. extend ( pg_cfg) ;
62
- }
63
- }
64
46
AppType :: RestAPI ( config) => {
65
47
// there is only 1 app_service in the restAPI
66
48
let mut restapi = RESTAPI . clone ( ) . app_services . unwrap ( ) . clone ( ) [ 0 ] . clone ( ) ;
@@ -390,8 +372,7 @@ mod tests {
390
372
resources : None ,
391
373
} ;
392
374
let user_embedding_app = AppType :: Embeddings ( Some ( app_config) ) ;
393
- let user_ai_app = AppType :: AIProxy ( None ) ;
394
- let user_apps = vec ! [ user_embedding_app, user_ai_app] ;
375
+ let user_apps = vec ! [ user_embedding_app] ;
395
376
let stack_apps = vec ! [ AppService {
396
377
name: "embeddings" . to_string( ) ,
397
378
env: Some ( vec![ EnvVar {
@@ -403,17 +384,7 @@ mod tests {
403
384
} ] ;
404
385
let merged_configs: MergedConfigs =
405
386
merge_app_reqs ( Some ( user_apps) , Some ( stack_apps) , None , None , None ) . unwrap ( ) ;
406
- let mut found: bool = false ;
407
- for config in merged_configs. pg_configs . clone ( ) . unwrap ( ) {
408
- if config. name == "vectorize.tembo_service_url" {
409
- assert_eq ! (
410
- config. value. to_string( ) ,
411
- "http://${NAMESPACE}-ai-proxy:8080/v1"
412
- ) ;
413
- found = true ;
414
- }
415
- }
416
- assert ! ( found) ;
387
+
417
388
// filter for embedding app
418
389
let embedding_app = merged_configs
419
390
. app_services
@@ -455,7 +426,6 @@ mod tests {
455
426
assert ! ( MQ . app_services. is_some( ) ) ;
456
427
assert ! ( PGANALYZE . app_services. is_some( ) ) ;
457
428
assert ! ( RESTAPI . app_services. is_some( ) ) ;
458
- assert ! ( AI . app_services. is_some( ) ) ;
459
429
}
460
430
461
431
#[ test]
0 commit comments