mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix arize config
This commit is contained in:
parent
9144f25a69
commit
c153fd3656
2 changed files with 5 additions and 9 deletions
|
@ -51,11 +51,6 @@ class ArizeLogger(OpenTelemetry):
|
|||
space_key = os.environ.get("ARIZE_SPACE_KEY")
|
||||
api_key = os.environ.get("ARIZE_API_KEY")
|
||||
|
||||
if not space_key:
|
||||
raise ValueError("ARIZE_SPACE_KEY not found in environment variables")
|
||||
if not api_key:
|
||||
raise ValueError("ARIZE_API_KEY not found in environment variables")
|
||||
|
||||
grpc_endpoint = os.environ.get("ARIZE_ENDPOINT")
|
||||
http_endpoint = os.environ.get("ARIZE_HTTP_ENDPOINT")
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from typing import TYPE_CHECKING, Literal, Any
|
||||
from typing import TYPE_CHECKING, Any, Literal, Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
@ -6,9 +6,10 @@ if TYPE_CHECKING:
|
|||
Protocol = Literal["otlp_grpc", "otlp_http"]
|
||||
else:
|
||||
Protocol = Any
|
||||
|
||||
|
||||
|
||||
class ArizeConfig(BaseModel):
|
||||
space_key: str
|
||||
api_key: str
|
||||
space_key: Optional[str] = None
|
||||
api_key: Optional[str] = None
|
||||
protocol: Protocol
|
||||
endpoint: str
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue