fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2024–2025, Daily
|
# Copyright (c) 2024–2026, Daily
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSD 2-Clause License
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
#
|
#
|
||||||
@@ -7,19 +7,16 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import platform
|
import platform
|
||||||
from importlib.metadata import version as lib_version
|
from typing import Dict
|
||||||
|
|
||||||
|
from pipecat import version as pipecat_version
|
||||||
|
|
||||||
|
|
||||||
def sdk_headers() -> dict[str, str]:
|
def sdk_headers() -> Dict[str, str]:
|
||||||
"""SDK identification headers for upstream providers."""
|
"""SDK identification headers for upstream providers."""
|
||||||
try:
|
|
||||||
pipecat_version = lib_version("pipecat-ai")
|
|
||||||
except Exception:
|
|
||||||
pipecat_version = "unknown"
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"X-SDK-Source": "Pipecat",
|
"X-SDK-Source": "Pipecat",
|
||||||
"X-SDK-Version": pipecat_version,
|
"X-SDK-Version": pipecat_version(),
|
||||||
"SDK-Language": "Python",
|
"SDK-Language": "Python",
|
||||||
"sdk-language-version": platform.python_version(),
|
"sdk-language-version": platform.python_version(),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2024–2025, Daily
|
# Copyright (c) 2024–2026, Daily
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSD 2-Clause License
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user