mirror of
https://github.com/katanemo/plano.git
synced 2026-05-03 21:02:56 +02:00
20 lines
407 B
Rust
20 lines
407 B
Rust
use filter_context::FilterContext;
|
|
use proxy_wasm::traits::*;
|
|
use proxy_wasm::types::*;
|
|
|
|
mod consts;
|
|
mod filter_context;
|
|
mod http;
|
|
mod llm_providers;
|
|
mod ratelimit;
|
|
mod routing;
|
|
mod stats;
|
|
mod stream_context;
|
|
mod tokenizer;
|
|
|
|
proxy_wasm::main! {{
|
|
proxy_wasm::set_log_level(LogLevel::Trace);
|
|
proxy_wasm::set_root_context(|_| -> Box<dyn RootContext> {
|
|
Box::new(FilterContext::new())
|
|
});
|
|
}}
|