gpt4 book ai didi

java - 谷歌应用引擎: Can I programmatically find out if this is the default version?

转载 作者:行者123 更新时间:2023-11-30 04:16:42 24 4
gpt4 key购买 nike

以编程方式发现此请求是否针对默认版本,而不是请求中设置的另一个特定版本。我想可能是这样的:

SystemProperty.isDefaultVersion

最佳答案

使用新提供的APIModules功能:

ModulesService modulesService = ModulesServiceFactory.getModulesService();
String currentModuleName = modulesService.getCurrentModule();
String version = modulesService.getDefaultVersion(currentModuleName);

关于java - 谷歌应用引擎: Can I programmatically find out if this is the default version?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18174457/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com