chore: scaffold openai-proxy project

This commit is contained in:
2026-06-05 23:28:05 +07:00
commit da1f5e3e36
5 changed files with 3361 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
UPSTREAM_URL=https://api.openai.com
UPSTREAM_API_KEY=sk-...
DATABASE_URL=postgres://proxy:proxy@localhost:5432/proxydb
BIND_ADDR=0.0.0.0
PORT=8080
RUST_LOG=info
+3
View File
@@ -0,0 +1,3 @@
/target
.env
*.db
+3321
View File
File diff suppressed because it is too large Load Diff
+30
View File
@@ -0,0 +1,30 @@
[package]
name = "openai-proxy"
version = "0.1.0"
edition = "2021"
[[bin]]
name = "openai-proxy"
path = "src/main.rs"
[dependencies]
axum = { version = "0.8", features = ["json", "multipart"] }
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
reqwest = { version = "0.12", features = ["json", "stream"] }
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres", "uuid", "chrono"] }
xxhash-rust = { version = "0.8", features = ["xxh3"] }
rig-core = "0.9"
uuid = { version = "1", features = ["v4"] }
chrono = { version = "0.4", features = ["serde"] }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
anyhow = "1"
tower-http = { version = "0.6", features = ["cors", "trace"] }
futures = "0.3"
bytes = "1"
dotenv = "0.15"
[dev-dependencies]
tokio-test = "0.4"
+1
View File
@@ -0,0 +1 @@
fn main() { println!("openai-proxy stub"); }