forked from phoenix/litellm-mirror
Set OpenAPI API version metadata
Ref: https://fastapi.tiangolo.com/tutorial/metadata/#metadata-for-api
This commit is contained in:
parent
d90e04b531
commit
71376788b2
1 changed files with 2 additions and 1 deletions
|
@ -84,6 +84,7 @@ from litellm.proxy._types import *
|
||||||
from litellm.caching import DualCache
|
from litellm.caching import DualCache
|
||||||
from litellm.proxy.health_check import perform_health_check
|
from litellm.proxy.health_check import perform_health_check
|
||||||
from litellm._logging import verbose_router_logger, verbose_proxy_logger
|
from litellm._logging import verbose_router_logger, verbose_proxy_logger
|
||||||
|
from litellm._version import version
|
||||||
|
|
||||||
litellm.suppress_debug_info = True
|
litellm.suppress_debug_info = True
|
||||||
from fastapi import (
|
from fastapi import (
|
||||||
|
@ -124,6 +125,7 @@ app = FastAPI(
|
||||||
docs_url="/",
|
docs_url="/",
|
||||||
title="LiteLLM API",
|
title="LiteLLM API",
|
||||||
description=f"Proxy Server to call 100+ LLMs in the OpenAI format\n\n{ui_message}",
|
description=f"Proxy Server to call 100+ LLMs in the OpenAI format\n\n{ui_message}",
|
||||||
|
version=version,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -3806,7 +3808,6 @@ async def health_readiness():
|
||||||
cache_type = None
|
cache_type = None
|
||||||
if litellm.cache is not None:
|
if litellm.cache is not None:
|
||||||
cache_type = litellm.cache.type
|
cache_type = litellm.cache.type
|
||||||
from litellm._version import version
|
|
||||||
|
|
||||||
if prisma_client is not None: # if db passed in, check if it's connected
|
if prisma_client is not None: # if db passed in, check if it's connected
|
||||||
if prisma_client.db.is_connected() == True:
|
if prisma_client.db.is_connected() == True:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue