aws: deprecate aws_nova_sonic
This commit is contained in:
19
src/pipecat/services/aws_nova_sonic/__init__.py
Normal file
19
src/pipecat/services/aws_nova_sonic/__init__.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2025, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
from pipecat.services.aws.nova_sonic.llm import AWSNovaSonicLLMService, Params
|
||||||
|
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("always")
|
||||||
|
warnings.warn(
|
||||||
|
"Types in pipecat.services.aws_nova_sonic are deprecated. "
|
||||||
|
"Please use the equivalent types from "
|
||||||
|
"pipecat.services.aws.nova_sonic.llm instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
25
src/pipecat/services/aws_nova_sonic/aws.py
Normal file
25
src/pipecat/services/aws_nova_sonic/aws.py
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2025, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
|
"""AWS Nova Sonic LLM service implementation for Pipecat AI framework.
|
||||||
|
|
||||||
|
This module provides a speech-to-speech LLM service using AWS Nova Sonic, which supports
|
||||||
|
bidirectional audio streaming, text generation, and function calling capabilities.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
from pipecat.services.aws.nova_sonic.llm import *
|
||||||
|
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("always")
|
||||||
|
warnings.warn(
|
||||||
|
"Types in pipecat.services.aws_nova_sonic.aws are deprecated. "
|
||||||
|
"Please use the equivalent types from "
|
||||||
|
"pipecat.services.aws.nova_sonic.llm instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
25
src/pipecat/services/aws_nova_sonic/context.py
Normal file
25
src/pipecat/services/aws_nova_sonic/context.py
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2025, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
|
"""Context management for AWS Nova Sonic LLM service.
|
||||||
|
|
||||||
|
This module provides specialized context aggregators and message handling for AWS Nova Sonic,
|
||||||
|
including conversation history management and role-specific message processing.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
from pipecat.services.aws.nova_sonic.context import *
|
||||||
|
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("always")
|
||||||
|
warnings.warn(
|
||||||
|
"Types in pipecat.services.aws_nova_sonic.context are deprecated. "
|
||||||
|
"Please use the equivalent types from "
|
||||||
|
"pipecat.services.aws.nova_sonic.context instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
21
src/pipecat/services/aws_nova_sonic/frames.py
Normal file
21
src/pipecat/services/aws_nova_sonic/frames.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2025, Daily
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: BSD 2-Clause License
|
||||||
|
#
|
||||||
|
|
||||||
|
"""Custom frames for AWS Nova Sonic LLM service."""
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
from pipecat.services.aws.nova_sonic.frames import *
|
||||||
|
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.simplefilter("always")
|
||||||
|
warnings.warn(
|
||||||
|
"Types in pipecat.services.aws_nova_sonic.frames are deprecated. "
|
||||||
|
"Please use the equivalent types from "
|
||||||
|
"pipecat.services.aws.nova_sonic.frames instead.",
|
||||||
|
DeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
Reference in New Issue
Block a user