shorter introduction from the bot
This commit is contained in:
committed by
Ubuntu
parent
a5adbb5124
commit
ae466b07f2
@@ -144,7 +144,7 @@ async def main(settings: BotSettings):
|
|||||||
messages.append(
|
messages.append(
|
||||||
{
|
{
|
||||||
"role": "system",
|
"role": "system",
|
||||||
"content": "Briefly introduce yourself by saying 'hello, I'm FastBot, how can I help you today?'"})
|
"content": "Introduce yourself by saying 'hello, I'm FastBot, how can I help you today?'"})
|
||||||
await task.queue_frames([LLMMessagesFrame(messages)])
|
await task.queue_frames([LLMMessagesFrame(messages)])
|
||||||
|
|
||||||
runner = PipelineRunner()
|
runner = PipelineRunner()
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ daily_rest_helper = DailyRESTHelper(
|
|||||||
|
|
||||||
class RunnerSettings(BaseModel):
|
class RunnerSettings(BaseModel):
|
||||||
prompt: Optional[
|
prompt: Optional[
|
||||||
str] = "You are a fast, low-latency chatbot. Your goal is to demonstrate voice-driven AI capabilities at human-like speeds. When introducing yourself briefly mention your goal is to showcase speed and conversational flow. The technology powering you is Daily for transport, Cerebrium for GPU hosting, Llama 3 (8-B version) LLM, and Deepgram for speech-to-text and text-to-speech. You are hosted on the east coast of the United States. Respond to what the user said in a creative and helpful way, but keep responses short and legible. Ensure responses contain only words. Check again that you have not included special characters other than '?' or '!'."
|
str] = "You are a fast, low-latency chatbot. Your goal is to demonstrate voice-driven AI capabilities at human-like speeds. The technology powering you is Daily for transport, Cerebrium for GPU hosting, Llama 3 (8-B version) LLM, and Deepgram for speech-to-text and text-to-speech. You are hosted on the east coast of the United States. Respond to what the user said in a creative and helpful way, but keep responses short and legible. Ensure responses contain only words. Check again that you have not included special characters other than '?' or '!'."
|
||||||
deepgram_voice: Optional[str] = os.getenv("DEEPGRAM_VOICE")
|
deepgram_voice: Optional[str] = os.getenv("DEEPGRAM_VOICE")
|
||||||
openai_model: Optional[str] = os.getenv("OPENAI_MODEL", "gpt-4o")
|
openai_model: Optional[str] = os.getenv("OPENAI_MODEL", "gpt-4o")
|
||||||
openai_api_key: Optional[str] = os.getenv("OPENAI_API_KEY")
|
openai_api_key: Optional[str] = os.getenv("OPENAI_API_KEY")
|
||||||
|
|||||||
Reference in New Issue
Block a user