mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 03:36:36 +08:00
Lint fixes
This commit is contained in:
parent
9d4890506d
commit
8a81e5f2c8
@ -27,8 +27,7 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
|
|
||||||
def wrap_dict(key_name, data):
|
def wrap_dict(key_name, data):
|
||||||
""" Make sure that the input data is a dict
|
"""Make sure that the input data is a dict"""
|
||||||
"""
|
|
||||||
if not isinstance(data, dict):
|
if not isinstance(data, dict):
|
||||||
return {key_name: data}
|
return {key_name: data}
|
||||||
|
|
||||||
@ -36,8 +35,7 @@ def wrap_dict(key_name, data):
|
|||||||
|
|
||||||
|
|
||||||
def wrap_metadata(metadata, **kwargs):
|
def wrap_metadata(metadata, **kwargs):
|
||||||
""" Add common metatada to all Traces and Spans
|
"""Add common metatada to all Traces and Spans"""
|
||||||
"""
|
|
||||||
metadata["created_from"] = "opik"
|
metadata["created_from"] = "opik"
|
||||||
|
|
||||||
metadata.update(kwargs)
|
metadata.update(kwargs)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user