chore: scaffold openai-proxy project
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,3 @@
|
||||
/target
|
||||
.env
|
||||
*.db
|
||||
Generated
+3321
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
@@ -0,0 +1 @@
|
||||
fn main() { println!("openai-proxy stub"); }
|
||||
Reference in New Issue
Block a user