Skip to content

Commit 11cf891

Browse files
committed
Manual updates for unused imports
1 parent ce7d823 commit 11cf891

13 files changed

Lines changed: 53 additions & 16 deletions

File tree

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
agent_name = "quickstart"
2-
image = "your_username/quickstart:0.1"
3-
secret_set = "quickstart-secrets"
1+
agent_name = "quickstart-test"
2+
image = "markatdaily/quickstart-test:latest"
3+
secret_set = "quickstart-test-secrets"
44
agent_profile = "agent-1x"
55

66
# RECOMMENDED: Set an image pull secret:
77
# https://docs.pipecat.ai/deployment/pipecat-cloud/fundamentals/secrets#image-pull-secrets
8-
# image_credentials = "your_image_pull_secret"
8+
image_credentials = "dockerhub-access"
99

1010
[scaling]
1111
min_agents = 1

scripts/krisp/test_krisp_viva_filter_audiofile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
try:
2424
import numpy as np
25-
import soundfile as sf
25+
import soundfile as sf # noqa: F401
2626
from audio_file_utils import calculate_audio_stats, read_audio_file, write_audio_file
2727
except ImportError as e:
2828
print(f"Error: Missing required dependencies: {e}")

scripts/krisp/test_krisp_viva_turn_audiofile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
try:
2525
import numpy as np
26-
import soundfile as sf
26+
import soundfile as sf # noqa: F401
2727
from audio_file_utils import read_audio_file
2828
except ImportError as e:
2929
print(f"Error: Missing required dependencies: {e}")

src/pipecat/runner/run.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ async def offer(request: SmallWebRTCRequest, background_tasks: BackgroundTasks):
263263
"""Handle WebRTC offer requests via SmallWebRTCRequestHandler."""
264264

265265
# Prepare runner arguments with the callback to run your bot
266-
async def webrtc_connection_callback(connection):
266+
async def webrtc_connection_callback(connection: SmallWebRTCConnection):
267267
bot_module = _get_bot_module()
268268

269269
runner_args = SmallWebRTCRunnerArguments(
@@ -406,13 +406,7 @@ def _setup_whatsapp_routes(app: FastAPI):
406406
return
407407

408408
try:
409-
from pipecat_ai_small_webrtc_prebuilt.frontend import SmallWebRTCPrebuiltUI
410-
411409
from pipecat.transports.smallwebrtc.connection import SmallWebRTCConnection
412-
from pipecat.transports.smallwebrtc.request_handler import (
413-
SmallWebRTCRequest,
414-
SmallWebRTCRequestHandler,
415-
)
416410
from pipecat.transports.whatsapp.api import WhatsAppWebhookRequest
417411
from pipecat.transports.whatsapp.client import WhatsAppClient
418412
except ImportError as e:

src/pipecat/services/aws_nova_sonic/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@
1717
DeprecationWarning,
1818
stacklevel=2,
1919
)
20+
21+
__all__ = [
22+
"AWSNovaSonicLLMService",
23+
"Params",
24+
]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
from .file_api import GeminiFileAPI
22
from .gemini import GeminiMultimodalLiveLLMService
3+
4+
__all__ = [
5+
"GeminiFileAPI",
6+
"GeminiMultimodalLiveLLMService",
7+
]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
from .file_api import GeminiFileAPI
22
from .llm import GeminiLiveLLMService
33
from .llm_vertex import GeminiLiveVertexLLMService
4+
5+
__all__ = [
6+
"GeminiFileAPI",
7+
"GeminiLiveLLMService",
8+
"GeminiLiveVertexLLMService",
9+
]

src/pipecat/services/moondream/vision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def detect_device():
4646
and dtype is the recommended torch data type for that device.
4747
"""
4848
try:
49-
import intel_extension_for_pytorch
49+
import intel_extension_for_pytorch # noqa: F401
5050

5151
if torch.xpu.is_available():
5252
return torch.device("xpu"), torch.float32

src/pipecat/services/openai_realtime/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@
2525
DeprecationWarning,
2626
stacklevel=2,
2727
)
28+
29+
__all__ = [
30+
"AzureRealtimeLLMService",
31+
"InputAudioNoiseReduction",
32+
"InputAudioTranscription",
33+
"SemanticTurnDetection",
34+
"SessionProperties",
35+
"TurnDetection",
36+
"OpenAIRealtimeLLMService",
37+
]

src/pipecat/services/openai_realtime_beta/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@
77
TurnDetection,
88
)
99
from .openai import OpenAIRealtimeBetaLLMService
10+
11+
__all__ = [
12+
"AzureRealtimeBetaLLMService",
13+
"InputAudioNoiseReduction",
14+
"InputAudioTranscription",
15+
"SemanticTurnDetection",
16+
"SessionProperties",
17+
"TurnDetection",
18+
"OpenAIRealtimeBetaLLMService",
19+
]

0 commit comments

Comments
 (0)