Rename examples
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
## Quickstart
|
## Quickstart - TBD TBD TBD TBD
|
||||||
|
|
||||||
### Setup
|
### Setup
|
||||||
|
|
||||||
@@ -31,3 +31,5 @@ CARTESIA_API_KEY=your_cartesia_api_key
|
|||||||
```bash
|
```bash
|
||||||
python bot.py
|
python bot.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Connect to your bot in a browser at http://localhost:7860
|
||||||
|
|||||||
@@ -163,6 +163,6 @@ async def bot(session_args):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from pipecat.runner.server import main
|
from pipecat.runner.cloud import main
|
||||||
|
|
||||||
main()
|
main()
|
||||||
@@ -109,6 +109,6 @@ async def bot(session_args):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from pipecat.runner.server import main
|
from pipecat.runner.cloud import main
|
||||||
|
|
||||||
main()
|
main()
|
||||||
@@ -62,7 +62,7 @@ async def run_bot(transport: BaseTransport, _: argparse.Namespace, handle_sigint
|
|||||||
messages = [
|
messages = [
|
||||||
{
|
{
|
||||||
"role": "system",
|
"role": "system",
|
||||||
"content": "You are a helpful LLM in a WebRTC call. Your goal is to demonstrate your capabilities in a succinct way. Your output will be converted to audio so don't include special characters in your answers. Respond to what the user said in a creative and helpful way.",
|
"content": "You are a friendly AI assistant. Respond naturally and keep your answers conversational.",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ async def run_bot(transport: BaseTransport, _: argparse.Namespace, handle_sigint
|
|||||||
async def on_client_connected(transport, client):
|
async def on_client_connected(transport, client):
|
||||||
logger.info(f"Client connected")
|
logger.info(f"Client connected")
|
||||||
# Kick off the conversation.
|
# Kick off the conversation.
|
||||||
messages.append({"role": "system", "content": "Please introduce yourself to the user."})
|
messages.append({"role": "system", "content": "Say hello and briefly introduce yourself."})
|
||||||
await task.queue_frames([context_aggregator.user().get_context_frame()])
|
await task.queue_frames([context_aggregator.user().get_context_frame()])
|
||||||
|
|
||||||
@transport.event_handler("on_client_disconnected")
|
@transport.event_handler("on_client_disconnected")
|
||||||
@@ -107,7 +107,7 @@ async def run_bot(transport: BaseTransport, _: argparse.Namespace, handle_sigint
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from pipecat.runner2.run import main
|
from pipecat.runner.local import main
|
||||||
|
|
||||||
transport_params = {
|
transport_params = {
|
||||||
transport: lambda t=transport: create_transport_params(t)
|
transport: lambda t=transport: create_transport_params(t)
|
||||||
@@ -38,7 +38,7 @@ async def run_bot(transport: BaseTransport, _: argparse.Namespace, handle_sigint
|
|||||||
messages = [
|
messages = [
|
||||||
{
|
{
|
||||||
"role": "system",
|
"role": "system",
|
||||||
"content": "You are a helpful LLM in a WebRTC call. Your goal is to demonstrate your capabilities in a succinct way. Your output will be converted to audio so don't include special characters in your answers. Respond to what the user said in a creative and helpful way.",
|
"content": "You are a friendly AI assistant. Respond naturally and keep your answers conversational.",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ async def run_bot(transport: BaseTransport, _: argparse.Namespace, handle_sigint
|
|||||||
async def on_client_connected(transport, client):
|
async def on_client_connected(transport, client):
|
||||||
logger.info(f"Client connected")
|
logger.info(f"Client connected")
|
||||||
# Kick off the conversation.
|
# Kick off the conversation.
|
||||||
messages.append({"role": "system", "content": "Please introduce yourself to the user."})
|
messages.append({"role": "system", "content": "Say hello and briefly introduce yourself."})
|
||||||
await task.queue_frames([context_aggregator.user().get_context_frame()])
|
await task.queue_frames([context_aggregator.user().get_context_frame()])
|
||||||
|
|
||||||
@transport.event_handler("on_client_disconnected")
|
@transport.event_handler("on_client_disconnected")
|
||||||
@@ -83,7 +83,7 @@ async def run_bot(transport: BaseTransport, _: argparse.Namespace, handle_sigint
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from pipecat.runner.run import main
|
from pipecat.runner.local import main
|
||||||
|
|
||||||
transport_params = {
|
transport_params = {
|
||||||
"webrtc": lambda: TransportParams(
|
"webrtc": lambda: TransportParams(
|
||||||
|
|||||||
Reference in New Issue
Block a user