langchain4j [QnA] 从企业环境中访问

1cklez4t  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(48)

Keep getting this error from company network.
For spring boot I added properties in prop file. For normal usage added System.setProperty method. Please assist.
Caused by: java.net.UnknownHostException: langchain4j.dev

at java.base/java.net.InetAddress$CachedAddresses.get(InetAddress.java:948)

          at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1628)

          at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1494)

          at okhttp3.Dns$Companion$DnsSystem.lookup(Dns.kt:49)
vltsax25

vltsax251#

你是否在使用"demo"API密钥?如果是,你需要将langchain4j.dev添加到防火墙白名单中。但我建议使用公司的OpenAI帐户/密钥。

相关问题