Skip to content

Commit 02e353a

Browse files
committed
fix bug
1 parent 361dd0c commit 02e353a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</modules>
1414

1515
<properties>
16-
<revision>1.0</revision>
16+
<revision>1.1</revision>
1717
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1818
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1919
<java.version>1.8</java.version>

robot-web/src/main/java/com/doodl6/wechatrobot/service/ChatGptService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void init() {
4444

4545
String proxyAddress = PropertyUtil.getProperty(OPENAI_PROXY);
4646
OkHttpClient.Builder clientBuilder = OpenAiService.defaultClient(apiKey, Duration.ofSeconds(10)).newBuilder();
47-
if (StringUtils.isNotBlank(OPENAI_PROXY)) {
47+
if (StringUtils.isNotBlank(proxyAddress)) {
4848
boolean valid = AddressUtil.validateAddress(proxyAddress);
4949
if (!valid) {
5050
throw new RuntimeException("OPENAI_PROXY is not valid, value:" + proxyAddress);

0 commit comments

Comments
 (0)