|
|
@ -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}") |
|
|
} |
|
|
} |
|
|
|