Export .rtvi, update new-chatbot example, rename and update foundational 32
This commit is contained in:
committed by
Aleix Conchillo Flaqué
parent
d07732f2e8
commit
abd9f16b90
@@ -89,6 +89,7 @@ async def main():
|
|||||||
api_key=os.getenv("GOOGLE_API_KEY"),
|
api_key=os.getenv("GOOGLE_API_KEY"),
|
||||||
system_instruction=system_instruction,
|
system_instruction=system_instruction,
|
||||||
tools=tools,
|
tools=tools,
|
||||||
|
model="gemini-1.5-flash-002",
|
||||||
)
|
)
|
||||||
|
|
||||||
context = OpenAILLMContext(
|
context = OpenAILLMContext(
|
||||||
@@ -23,7 +23,7 @@ from pipecat.processors.frame_processor import FrameDirection, FrameProcessor
|
|||||||
from pipecat.processors.frameworks.rtvi import RTVIConfig, RTVIProcessor
|
from pipecat.processors.frameworks.rtvi import RTVIConfig, RTVIProcessor
|
||||||
from pipecat.services.cartesia import CartesiaTTSService
|
from pipecat.services.cartesia import CartesiaTTSService
|
||||||
from pipecat.services.deepgram import DeepgramSTTService
|
from pipecat.services.deepgram import DeepgramSTTService
|
||||||
from pipecat.services.google import GoogleLLMService, LLMSearchResponseFrame
|
from pipecat.services.google import GoogleLLMService, GoogleRTVIObserver, LLMSearchResponseFrame
|
||||||
from pipecat.transports.services.daily import DailyParams, DailyTransport
|
from pipecat.transports.services.daily import DailyParams, DailyTransport
|
||||||
from pipecat.utils.text.markdown_text_filter import MarkdownTextFilter
|
from pipecat.utils.text.markdown_text_filter import MarkdownTextFilter
|
||||||
|
|
||||||
@@ -102,6 +102,7 @@ async def main():
|
|||||||
|
|
||||||
llm = GoogleLLMService(
|
llm = GoogleLLMService(
|
||||||
api_key=os.getenv("GOOGLE_API_KEY"),
|
api_key=os.getenv("GOOGLE_API_KEY"),
|
||||||
|
model="gemini-1.5-flash-002",
|
||||||
system_instruction=system_instruction,
|
system_instruction=system_instruction,
|
||||||
tools=tools,
|
tools=tools,
|
||||||
)
|
)
|
||||||
@@ -141,7 +142,7 @@ async def main():
|
|||||||
pipeline,
|
pipeline,
|
||||||
PipelineParams(
|
PipelineParams(
|
||||||
allow_interruptions=True,
|
allow_interruptions=True,
|
||||||
observers=[rtvi.observer()],
|
observers=[GoogleRTVIObserver(rtvi)],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
from .frames import LLMSearchResponseFrame
|
from .frames import LLMSearchResponseFrame
|
||||||
from .google import *
|
from .google import *
|
||||||
|
from .rtvi import *
|
||||||
|
|||||||
Reference in New Issue
Block a user