From 8322a46bef74ae9465efcb7e08e561c60be6cf6b Mon Sep 17 00:00:00 2001 From: "K.Y" Date: Fri, 8 Mar 2024 01:06:26 +0800 Subject: [PATCH] fix: fix `OPENAI_API_KEY` typo --- .env | 5 ++--- .env.example | 6 ++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.env b/.env index 5722aa7..dc6fa15 100644 --- a/.env +++ b/.env @@ -20,10 +20,9 @@ DEFAULT_REQUEST_CACHING_VALUE=false FORWARD_CONFIG=[{"base_url":"https://api.openai.com","route":"/","type":"openai"}] -#OPENAI_API_KEY={"sk-xxx": 0, "sk-xxx": 1, "sk-xxx": 2} -#FORWARD_KEY={"fk-0": 0, "fk-1": 1, "fk-2": 2} #LEVEL_MODELS={"1": ["gpt-4"], "2": ["gpt-3.5-turbo"]} - +#OPENAI_API_KEY={"sk-xxx": [0], "sk-xxx": [1], "sk-xxx": [1,2]} +#FORWARD_KEY={"fk-0": 0, "fk-1": 1, "fk-2": 2} # `REQ_RATE_LIMIT`: i.e., Request rate limit for specified routes, user specific # format: {route: ratelimit-string} diff --git a/.env.example b/.env.example index 7021f61..6456b72 100644 --- a/.env.example +++ b/.env.example @@ -17,11 +17,9 @@ BENCHMARK_MODE=true # `FORWARD_CONFIG` 下面的配置将转发https://api.openai.com 至根路由`/`,转发 https://generativelanguage.googleapis.com至 `/gemini`路由: FORWARD_CONFIG=[{"base_url":"https://api.openai.com","route":"/","type":"openai"},{"base_url":"https://generativelanguage.googleapis.com","route":"/gemini","type":"general"}] - -#OPENAI_API_KEY={"sk-***":0,"***":0} -#FORWARD_KEY={"fk-***":0,"***":0} #LEVEL_MODELS={"1": ["gpt-4"], "2": ["gpt-3.5-turbo"]} - +#OPENAI_API_KEY={"sk-xxx": [0], "sk-xxx": [1], "sk-xxx": [1,2]} +#FORWARD_KEY={"fk-0": 0, "fk-1": 1, "fk-2": 2} # `REQ_RATE_LIMIT`: 指定路由的请求速率限制(区分用户) # `REQ_RATE_LIMIT`: i.e., Request rate limit for specified routes, user specific