chore: apply pep8-naming rules for naming convention (#8261)
This commit is contained in:
parent
53f37a6704
commit
292220c596
95 changed files with 287 additions and 258 deletions
|
|
@ -26,6 +26,7 @@ class LangfuseConfig(BaseTracingConfig):
|
|||
host: str = "https://api.langfuse.com"
|
||||
|
||||
@field_validator("host")
|
||||
@classmethod
|
||||
def set_value(cls, v, info: ValidationInfo):
|
||||
if v is None or v == "":
|
||||
v = "https://api.langfuse.com"
|
||||
|
|
@ -45,6 +46,7 @@ class LangSmithConfig(BaseTracingConfig):
|
|||
endpoint: str = "https://api.smith.langchain.com"
|
||||
|
||||
@field_validator("endpoint")
|
||||
@classmethod
|
||||
def set_value(cls, v, info: ValidationInfo):
|
||||
if v is None or v == "":
|
||||
v = "https://api.smith.langchain.com"
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ class BaseTraceInfo(BaseModel):
|
|||
metadata: dict[str, Any]
|
||||
|
||||
@field_validator("inputs", "outputs")
|
||||
@classmethod
|
||||
def ensure_type(cls, v):
|
||||
if v is None:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue