Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support many endpoints #31

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

from lmos_openai_types import CreateChatCompletionRequest, CreateCompletionRequest

from openai_clients import (
client,
completions,
chat_completions,
streaming_chat_completions,
)
from .genericHttpxClient import client
from .completion import completions
from .chatCompletion import chat_completions
from .streamChatCompletion import streaming_chat_completions

from openapi_tags import Tag

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
from loguru import logger
from httpx_sse import aconnect_sse

from sse_starlette.sse import EventSourceResponse, ServerSentEvent
from sse_starlette.sse import EventSourceResponse
from sse_starlette.event import ServerSentEvent


async def streaming_chat_completions(request: CreateChatCompletionRequest):
Expand Down
2 changes: 1 addition & 1 deletion mcp_bridge/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from fastapi import FastAPI
from endpoints import router as endpointRouter
from api_endpoints.openai import router as endpointRouter
from mcpManagement import router as mcpRouter
from health import router as healthRouter
from mcp_server import router as mcp_server_router
Expand Down
6 changes: 0 additions & 6 deletions mcp_bridge/openai_clients/__init__.py

This file was deleted.