File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
robot-web/src/main/java/com/doodl6/wechatrobot/service Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 13
13
</modules >
14
14
15
15
<properties >
16
- <revision >1.0 </revision >
16
+ <revision >1.1 </revision >
17
17
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
18
18
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
19
19
<java .version>1.8</java .version>
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ public void init() {
44
44
45
45
String proxyAddress = PropertyUtil .getProperty (OPENAI_PROXY );
46
46
OkHttpClient .Builder clientBuilder = OpenAiService .defaultClient (apiKey , Duration .ofSeconds (10 )).newBuilder ();
47
- if (StringUtils .isNotBlank (OPENAI_PROXY )) {
47
+ if (StringUtils .isNotBlank (proxyAddress )) {
48
48
boolean valid = AddressUtil .validateAddress (proxyAddress );
49
49
if (!valid ) {
50
50
throw new RuntimeException ("OPENAI_PROXY is not valid, value:" + proxyAddress );
You can’t perform that action at this time.
0 commit comments