Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dvarelas committed Jan 21, 2024
1 parent 51e3b06 commit 6148fa2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion llm-gateway/llm_gateway/api/v1/endpoints/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ async def create(request: CreateCompletionDTO):
}

return JSONResponse(content=response_dto)

1 change: 0 additions & 1 deletion llm-gateway/llm_gateway/api/v1/endpoints/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ async def create(request: CreateEmbeddingDTO):
}

return JSONResponse(content=response_dto)

1 change: 0 additions & 1 deletion llm-gateway/llm_gateway/api/v1/endpoints/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ async def create(request: CreateImageDTO):
}

return JSONResponse(content=response_dto)

3 changes: 0 additions & 3 deletions llm-gateway/llm_gateway/api/v1/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
from fastapi import Request
from typing import Optional
from fastapi.responses import JSONResponse
from fastapi.exceptions import HTTPException

from openai import OpenAIError


class NotFoundError(HTTPException):
def __init__(self, detail="Not Found"):
Expand Down
2 changes: 0 additions & 2 deletions llm-gateway/llm_gateway/providers/openai/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ async def generations(self, image_input: CreateImageDTO):
except Exception as e:
logger.error(e)
raise InternalServerError()


0 comments on commit 6148fa2

Please sign in to comment.