From 362c0d4bc2a52a8e039c2a7d26a410746186a391 Mon Sep 17 00:00:00 2001 From: zhangqianze Date: Sat, 10 Aug 2024 22:46:52 +0800 Subject: [PATCH 1/2] feat: temp remove litellm --- agents/addon/{extension => bak}/litellm_python/__init__.py | 0 agents/addon/{extension => bak}/litellm_python/extension.py | 0 agents/addon/{extension => bak}/litellm_python/litellm.py | 0 agents/addon/{extension => bak}/litellm_python/litellm_addon.py | 0 .../addon/{extension => bak}/litellm_python/litellm_extension.py | 0 agents/addon/{extension => bak}/litellm_python/log.py | 0 agents/addon/{extension => bak}/litellm_python/manifest.json | 0 agents/addon/{extension => bak}/litellm_python/requirements.txt | 0 agents/addon/{extension => bak}/litellm_python/utils.py | 0 9 files changed, 0 insertions(+), 0 deletions(-) rename agents/addon/{extension => bak}/litellm_python/__init__.py (100%) rename agents/addon/{extension => bak}/litellm_python/extension.py (100%) rename agents/addon/{extension => bak}/litellm_python/litellm.py (100%) rename agents/addon/{extension => bak}/litellm_python/litellm_addon.py (100%) rename agents/addon/{extension => bak}/litellm_python/litellm_extension.py (100%) rename agents/addon/{extension => bak}/litellm_python/log.py (100%) rename agents/addon/{extension => bak}/litellm_python/manifest.json (100%) rename agents/addon/{extension => bak}/litellm_python/requirements.txt (100%) rename agents/addon/{extension => bak}/litellm_python/utils.py (100%) diff --git a/agents/addon/extension/litellm_python/__init__.py b/agents/addon/bak/litellm_python/__init__.py similarity index 100% rename from agents/addon/extension/litellm_python/__init__.py rename to agents/addon/bak/litellm_python/__init__.py diff --git a/agents/addon/extension/litellm_python/extension.py b/agents/addon/bak/litellm_python/extension.py similarity index 100% rename from agents/addon/extension/litellm_python/extension.py rename to agents/addon/bak/litellm_python/extension.py diff --git a/agents/addon/extension/litellm_python/litellm.py b/agents/addon/bak/litellm_python/litellm.py similarity index 100% rename from agents/addon/extension/litellm_python/litellm.py rename to agents/addon/bak/litellm_python/litellm.py diff --git a/agents/addon/extension/litellm_python/litellm_addon.py b/agents/addon/bak/litellm_python/litellm_addon.py similarity index 100% rename from agents/addon/extension/litellm_python/litellm_addon.py rename to agents/addon/bak/litellm_python/litellm_addon.py diff --git a/agents/addon/extension/litellm_python/litellm_extension.py b/agents/addon/bak/litellm_python/litellm_extension.py similarity index 100% rename from agents/addon/extension/litellm_python/litellm_extension.py rename to agents/addon/bak/litellm_python/litellm_extension.py diff --git a/agents/addon/extension/litellm_python/log.py b/agents/addon/bak/litellm_python/log.py similarity index 100% rename from agents/addon/extension/litellm_python/log.py rename to agents/addon/bak/litellm_python/log.py diff --git a/agents/addon/extension/litellm_python/manifest.json b/agents/addon/bak/litellm_python/manifest.json similarity index 100% rename from agents/addon/extension/litellm_python/manifest.json rename to agents/addon/bak/litellm_python/manifest.json diff --git a/agents/addon/extension/litellm_python/requirements.txt b/agents/addon/bak/litellm_python/requirements.txt similarity index 100% rename from agents/addon/extension/litellm_python/requirements.txt rename to agents/addon/bak/litellm_python/requirements.txt diff --git a/agents/addon/extension/litellm_python/utils.py b/agents/addon/bak/litellm_python/utils.py similarity index 100% rename from agents/addon/extension/litellm_python/utils.py rename to agents/addon/bak/litellm_python/utils.py From 80219fb01b682fe934409e60b8e2636eabb51899 Mon Sep 17 00:00:00 2001 From: zhangqianze Date: Sat, 10 Aug 2024 22:48:34 +0800 Subject: [PATCH 2/2] feat: remove litellm from graph --- agents/property.json.example | 222 ----------------------------------- 1 file changed, 222 deletions(-) diff --git a/agents/property.json.example b/agents/property.json.example index 899e7b73..85619a89 100644 --- a/agents/property.json.example +++ b/agents/property.json.example @@ -1395,228 +1395,6 @@ ] } ] - }, - { - "name": "va.litellm.azure", - "auto_start": true, - "nodes": [ - { - "type": "extension", - "extension_group": "default", - "addon": "agora_rtc", - "name": "agora_rtc", - "property": { - "app_id": "", - "token": "", - "channel": "astra_agents_test", - "stream_id": 1234, - "remote_stream_id": 123, - "subscribe_audio": true, - "publish_audio": true, - "publish_data": true, - "enable_agora_asr": true, - "agora_asr_vendor_name": "microsoft", - "agora_asr_language": "en-US", - "agora_asr_vendor_key": "", - "agora_asr_vendor_region": "", - "agora_asr_session_control_file_path": "session_control.conf" - } - }, - { - "type": "extension", - "extension_group": "default", - "addon": "interrupt_detector", - "name": "interrupt_detector" - }, - { - "type": "extension", - "extension_group": "llm", - "addon": "litellm_python", - "name": "litellm", - "property": { - "api_key": "", - "base_url": "", - "greeting": "ASTRA agent connected. How can i help you today?", - "frequency_penalty": 0.9, - "max_memory_length": 10, - "max_tokens": 512, - "model": "gpt-3.5-turbo", - "presence_penalty": 0.9, - "prompt": "", - "provider": "", - "temperature": 0.1, - "top_p": 1.0 - } - }, - { - "type": "extension", - "extension_group": "tts", - "addon": "azure_tts", - "name": "azure_tts", - "property": { - "azure_subscription_key": "", - "azure_subscription_region": "", - "azure_synthesis_voice_name": "en-US-JaneNeural" - } - }, - { - "type": "extension", - "extension_group": "transcriber", - "addon": "chat_transcriber", - "name": "chat_transcriber" - }, - { - "type": "extension_group", - "addon": "default_extension_group", - "name": "default" - }, - { - "type": "extension_group", - "addon": "default_extension_group", - "name": "llm" - }, - { - "type": "extension_group", - "addon": "default_extension_group", - "name": "tts" - }, - { - "type": "extension_group", - "addon": "default_extension_group", - "name": "transcriber" - } - ], - "connections": [ - { - "extension_group": "default", - "extension": "agora_rtc", - "data": [ - { - "name": "text_data", - "dest": [ - { - "extension_group": "default", - "extension": "interrupt_detector" - }, - { - "extension_group": "llm", - "extension": "litellm" - }, - { - "extension_group": "transcriber", - "extension": "chat_transcriber" - } - ] - } - ] - }, - { - "extension_group": "llm", - "extension": "litellm", - "data": [ - { - "name": "text_data", - "dest": [ - { - "extension_group": "tts", - "extension": "azure_tts" - }, - { - "extension_group": "transcriber", - "extension": "chat_transcriber", - "cmd_conversions": [ - { - "cmd": { - "type": "per_property", - "keep_original": true, - "rules": [ - { - "path": "is_final", - "type": "fixed_value", - "value": "bool(true)" - }, - { - "path": "stream_id", - "type": "fixed_value", - "value": "uint32(999)" - } - ] - } - } - ] - } - ] - } - ], - "cmd": [ - { - "name": "flush", - "dest": [ - { - "extension_group": "tts", - "extension": "azure_tts" - } - ] - } - ] - }, - { - "extension_group": "tts", - "extension": "azure_tts", - "pcm_frame": [ - { - "name": "pcm_frame", - "dest": [ - { - "extension_group": "default", - "extension": "agora_rtc" - } - ] - } - ], - "cmd": [ - { - "name": "flush", - "dest": [ - { - "extension_group": "default", - "extension": "agora_rtc" - } - ] - } - ] - }, - { - "extension_group": "transcriber", - "extension": "chat_transcriber", - "data": [ - { - "name": "data", - "dest": [ - { - "extension_group": "default", - "extension": "agora_rtc" - } - ] - } - ] - }, - { - "extension_group": "default", - "extension": "interrupt_detector", - "cmd": [ - { - "name": "flush", - "dest": [ - { - "extension_group": "llm", - "extension": "litellm" - } - ] - } - ] - } - ] } ] }