rename models_vX to models.py and models_deprecated.py
This commit is contained in:
committed by
Mattie Ruth
parent
da0975a4e0
commit
18494658c3
@@ -12,7 +12,7 @@ from pipecat.processors.frameworks.rtvi.frames import (
|
|||||||
RTVIServerMessageFrame,
|
RTVIServerMessageFrame,
|
||||||
RTVIServerResponseFrame,
|
RTVIServerResponseFrame,
|
||||||
)
|
)
|
||||||
from pipecat.processors.frameworks.rtvi.models_v0 import (
|
from pipecat.processors.frameworks.rtvi.models_deprecated import (
|
||||||
ActionResult,
|
ActionResult,
|
||||||
RTVIAction,
|
RTVIAction,
|
||||||
RTVIActionArgument,
|
RTVIActionArgument,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
Contains all RTVI protocol v1 message definitions and data structures.
|
Contains all RTVI protocol v1 message definitions and data structures.
|
||||||
Import this module under the ``RTVI`` alias to use as a namespace::
|
Import this module under the ``RTVI`` alias to use as a namespace::
|
||||||
|
|
||||||
import pipecat.processors.frameworks.rtvi.models_v1 as RTVI
|
import pipecat.processors.frameworks.rtvi.models as RTVI
|
||||||
|
|
||||||
msg = RTVI.BotReady(id="1", data=RTVI.BotReadyData(version=RTVI.PROTOCOL_VERSION))
|
msg = RTVI.BotReady(id="1", data=RTVI.BotReadyData(version=RTVI.PROTOCOL_VERSION))
|
||||||
"""
|
"""
|
||||||
@@ -24,7 +24,7 @@ from typing import (
|
|||||||
|
|
||||||
from pydantic import BaseModel, Field, PrivateAttr
|
from pydantic import BaseModel, Field, PrivateAttr
|
||||||
|
|
||||||
import pipecat.processors.frameworks.rtvi.models_v1 as RTVI
|
import pipecat.processors.frameworks.rtvi.models as RTVI
|
||||||
|
|
||||||
ActionResult = Union[bool, int, float, str, list, dict]
|
ActionResult = Union[bool, int, float, str, list, dict]
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ from typing import (
|
|||||||
from loguru import logger
|
from loguru import logger
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
import pipecat.processors.frameworks.rtvi.models_v1 as RTVI
|
import pipecat.processors.frameworks.rtvi.models as RTVI
|
||||||
from pipecat.audio.utils import calculate_audio_volume
|
from pipecat.audio.utils import calculate_audio_volume
|
||||||
from pipecat.frames.frames import (
|
from pipecat.frames.frames import (
|
||||||
AggregatedTextFrame,
|
AggregatedTextFrame,
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ from typing import Any, Dict, Mapping, Optional
|
|||||||
from loguru import logger
|
from loguru import logger
|
||||||
from pydantic import BaseModel, ValidationError
|
from pydantic import BaseModel, ValidationError
|
||||||
|
|
||||||
import pipecat.processors.frameworks.rtvi.models_v1 as RTVI
|
import pipecat.processors.frameworks.rtvi.models as RTVI
|
||||||
from pipecat import version as pipecat_version
|
from pipecat import version as pipecat_version
|
||||||
from pipecat.frames.frames import (
|
from pipecat.frames.frames import (
|
||||||
CancelFrame,
|
CancelFrame,
|
||||||
@@ -32,7 +32,7 @@ from pipecat.frames.frames import (
|
|||||||
)
|
)
|
||||||
from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
|
from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
|
||||||
from pipecat.processors.frameworks.rtvi.frames import RTVIActionFrame, RTVIClientMessageFrame
|
from pipecat.processors.frameworks.rtvi.frames import RTVIActionFrame, RTVIClientMessageFrame
|
||||||
from pipecat.processors.frameworks.rtvi.models_v0 import (
|
from pipecat.processors.frameworks.rtvi.models_deprecated import (
|
||||||
RTVIAction,
|
RTVIAction,
|
||||||
RTVIActionResponse,
|
RTVIActionResponse,
|
||||||
RTVIActionResponseData,
|
RTVIActionResponseData,
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ from typing import Optional
|
|||||||
|
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
import pipecat.processors.frameworks.rtvi.models_v1 as RTVI
|
import pipecat.processors.frameworks.rtvi.models as RTVI
|
||||||
from pipecat.frames.frames import (
|
from pipecat.frames.frames import (
|
||||||
Frame,
|
Frame,
|
||||||
OutputTransportMessageFrame,
|
OutputTransportMessageFrame,
|
||||||
|
|||||||
Reference in New Issue
Block a user