bifrost
约 1 分钟阅读
标签:Gateway
- maximhq/bifrostGitHubmaximhq/bifrostmaximhq/bifrost · Apache-2.0, Go, Typescript · 参考 · 价格数据 https://getbifrost.ai/datasheet · 头 · x-bf-key · Virtual Keys · x-bf-cache-key笔记:bifrost
- Apache-2.0, Go, Typescript
- 参考
- 头
- x-bf-key
- Virtual Keys
- x-bf-cache-key
- x-bf-key
- 目前还不支持 alias 别名,请求是 PROVIDER/MODEL
npx -y @maximhq/bifrost
docker run -p 8080:8080 -v $PWD/data:/app/data maximhq/bifrost- config.json - Configuration file (optional)
- config.db - SQLite database for UI configuration
- logs.db - Request logs database
{
"client": {
"drop_excess_requests": false
},
"providers": {
"openai": {
"keys": [
{
"name": "openai-key-1",
"value": "env.OPENAI_API_KEY",
"models": ["gpt-4o-mini", "gpt-4o"],
"weight": 1.0
}
]
}
},
"config_store": {
"enabled": true,
"type": "sqlite",
"config": {
"path": "./config.db"
}
}
}- 如果没有 config_store
- 只读模式
- 没有 UI
- 都在内存
{
"config_store": {
"enabled": true,
"type": "postgres",
"config": {
"host": "localhost",
"port": "5432",
"user": "postgres",
"password": "password",
"db_name": "bifrost_config",
"ssl_mode": "disable", // e.g., "disable", "require", "verify-full"
"max_idle_conns": 5, // (可选) 默认 5
"max_open_conns": 50 // (可选) 默认 50
}
}
}关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub1 条
- maximhq/bifrostgithub.com/maximhq/bifrost
其他外链1 条
- getbifrost.ai/datasheetgetbifrost.ai/datasheet