Skip to content

Commit

Permalink
Fix build error (#207)
Browse files Browse the repository at this point in the history
* fix: build error

* fix: fix build failure

* fix: fix compile error

---------

Co-authored-by: zhangqianze <[email protected]>
  • Loading branch information
wangyoucao577 and plutoless authored Aug 14, 2024
1 parent b034d89 commit c0faba2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
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

0 comments on commit c0faba2

Please sign in to comment.