Browse Source

Merge branch 'new_dev' of https://github.com/deepcloud2048/deep_voice into new_dev

newdev_shunjiawei
liwei1dao 10 months ago
parent
commit
6165ddac3b
  1. 9
      local_plugins/agent_service/android/src/main/kotlin/com/yunqiinnovation/agent_service/AgentService.kt

9
local_plugins/agent_service/android/src/main/kotlin/com/yunqiinnovation/agent_service/AgentService.kt

@ -305,6 +305,15 @@ object AgentService : CoroutineScope {
insufficientIntegralText = config["insufficientIntegralText"]?.toString() ?: insufficientIntegralText insufficientIntegralText = config["insufficientIntegralText"]?.toString() ?: insufficientIntegralText
vipExptime = config["vipexptime"]?.toString()?.toIntOrNull() ?: vipExptime; vipExptime = config["vipexptime"]?.toString()?.toIntOrNull() ?: vipExptime;
navigationMode = config["navigationMode"]?.toString() ?: navigationMode navigationMode = config["navigationMode"]?.toString() ?: navigationMode
musicServiceType = config["musicServiceType"]?.toString() ?: ""
chatApiService.initialize(
config["openaiApiKey"]?.toString() ?: "",
config["openaiBaseUrl"]?.toString() ?: "",
config["openaiModel"]?.toString() ?: "",
config["openaivisionModel"]?.toString() ?: "",
config["mcpServer"]?.toString() ?: "",
config["musicServiceType"]?.toString() ?: ""
)
} catch (e: Exception) { } catch (e: Exception) {
Log.e(TAG, "应用配置更新失败 config: $config Exception:${e.message}") Log.e(TAG, "应用配置更新失败 config: $config Exception:${e.message}")
} }

Loading…
Cancel
Save