Skip to content

Commit

Permalink
🎉 add openai router
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceunx committed Apr 29, 2024
1 parent bd4bd97 commit d83d593
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions gpt_server/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from fastapi.middleware.cors import CORSMiddleware
from .routers import gemini as gemini_router # type: ignore
from .routers import groq as groq_router # type: ignore
from .routers import openai as openai_router # type: ignore

app = FastAPI(docs_url=None, swagger_ui_init_oauth=None, redoc_url=None)

Expand All @@ -21,3 +22,6 @@ def main():

app.include_router(gemini_router.router, prefix="/gemini", tags=["gemini"])
app.include_router(groq_router.router, prefix="/groq", tags=["groq"])
app.include_router(openai_router.router,
prefix="/openai_chat",
tags=["openai"])
2 changes: 1 addition & 1 deletion tests/test_redis.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import redis

redis_client = redis.Redis(host='', port=000, db=0, password="")
redis_client = redis.Redis(host='172.232.237.13', port=6011, db=0)

try:
redis_client.ping()
Expand Down

0 comments on commit d83d593

Please sign in to comment.