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

Fix build error #207

Merged
merged 3 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion playground/src/common/constant.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IOptions, ColorItem, LanguageOptionItem, VoiceOptionItem, GraphNameOptionItem, GraphOptionItem } from "@/types"
import { IOptions, ColorItem, LanguageOptionItem, VoiceOptionItem, GraphOptionItem } from "@/types"

export const REQUEST_URL = process.env.NEXT_PUBLIC_REQUEST_URL ?? ""
export const GITHUB_URL = "https://github.com/rte-design/ASTRA.ai"
Expand Down
9 changes: 4 additions & 5 deletions playground/src/platform/mobile/description/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const Description = () => {
const userId = useAppSelector(state => state.global.options.userId)
const language = useAppSelector(state => state.global.language)
const voiceType = useAppSelector(state => state.global.voiceType)
const graphName = useAppSelector(state => state.global.graphName)
const [loading, setLoading] = useState(false)

useEffect(() => {
Expand Down Expand Up @@ -44,14 +45,12 @@ const Description = () => {
message.success("Agent disconnected")
stopPing()
} else {
let params = new URLSearchParams(document.location.search);
let graph_name = params.get("graph_name");
const res = await apiStartService({
channel,
userId,
language: lang,
voiceType: voice,
graphName: graph_name,
language,
voiceType,
graphName,
})
const { code, msg } = res || {}
if (code != 0) {
Expand Down
25 changes: 14 additions & 11 deletions server/internal/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,20 @@ type Prop struct {

const (
// Extension name
extensionNameAgoraRTC = "agora_rtc"
extensionNameAzureTTS = "azure_tts"
extensionNameBedrockLLM = "bedrock_llm"
extensionNameCosyTTS = "cosy_tts"
extensionNameElevenlabsTTS = "elevenlabs_tts"
extensionNameGeminiLLM = "gemini_llm"
extensionNameLiteLLM = "litellm"
extensionNameOpenaiChatgpt = "openai_chatgpt"
extensionNamePollyTTS = "polly_tts"
extensionNameQwenLLM = "qwen_llm"
extensionNameTranscribeAsr = "transcribe_asr"
extensionNameAgoraRTC = "agora_rtc"
extensionNameAzureTTS = "azure_tts"
extensionNameBedrockLLM = "bedrock_llm"
extensionNameCosyTTS = "cosy_tts"
extensionNameElevenlabsTTS = "elevenlabs_tts"
extensionNameGeminiLLM = "gemini_llm"
extensionNameLiteLLM = "litellm"
extensionNameOpenaiChatgpt = "openai_chatgpt"
extensionNamePollyTTS = "polly_tts"
extensionNameQwenLLM = "qwen_llm"
extensionNameTranscribeAsr = "transcribe_asr"
extensionNameHttpServer = "http_server"
extensionNameAliyunAnalyticdbVectorStorage = "aliyun_analyticdb_vector_storage"
extensionNameAliyunTextEmbedding = "aliyun_text_embedding"

// Language
languageChinese = "zh-CN"
Expand Down
Loading