Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Using LLMs other than OpenAI #363

Open
Codemonk-adi opened this issue Aug 5, 2024 · 1 comment
Open

Error Using LLMs other than OpenAI #363

Codemonk-adi opened this issue Aug 5, 2024 · 1 comment

Comments

@Codemonk-adi
Copy link

Using alternate LLMs for conversational tasks fails since even in creating a StreamingContextualAgent, OpenAiLLM is used to detect conversation completion.

bolna/agent_types/contextual_conversational_agent.py:18

@Codemonk-adi
Copy link
Author

Codemonk-adi commented Aug 5, 2024

Agent Creation Request
POST /agent

{
    "agent_config": {
        "agent_name": "Alfred",
        "agent_type": "other",
        "agent_welcome_message": "Welcome",
        "tasks": [{
            "task_type": "conversation",
            "toolchain": {
                "execution": "parallel",
                "pipelines": [
                    [
                        "transcriber",
                        "llm",
                        "synthesizer"
                    ]
                ]
            },
            "tools_config": {
                "input": {
                    "format": "pcm",
                    "provider": "twilio"
                },
                "llm_agent": {
                    "agent_flow_type": "streaming",
                    "provider": "azure-openai",
                    "request_json": true,
                    "model": "gpt-4o",
                    "use_fallback": true
                },
                "output": {
                    "format": "pcm",
                    "provider": "twilio"
                },
                "synthesizer": {
                    "audio_format": "wav",
                    "provider": "elevenlabs",
                    "stream": true,
                    "provider_config": {
                        "voice": "Meera - high quality, emotive",
                        "model": "eleven_turbo_v2_5",
                        "voice_id": "TTa58Hl9lmhnQEvhp1WM"
                    },
                    "buffer_size": 100.0
                },
                "transcriber": {
                    "encoding": "linear16",
                    "language": "en",
                    "provider": "deepgram",
                    "stream": true
                }
            },
            "task_config": {
                "hangup_after_silence": 30.0
            }
        }]
    },
    "agent_prompts": {
        "task_1": {
            "system_prompt": "Ask if they are coming for party tonight"
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant