更新自述文件,并且将 Key 配置到环境文件中
This commit is contained in:
parent
7d3b7c7eb1
commit
a991582b80
10
README.md
10
README.md
|
@ -23,11 +23,11 @@ code.
|
|||
* [社区和讨论](https://www.ossez.com/tag/chat-gpt)
|
||||
|
||||
| 联系方式名称 | 联系方式 |
|
||||
|------------------|-----------------------------------------------|
|
||||
|------------------|---------------------------------------|
|
||||
| 电子邮件(Email) | [yhu@ossez.com](mailto:yhu@ossez.com) |
|
||||
| QQ 或微信(WeChat) | 103899765 |
|
||||
| QQ 交流群 | 15186112 |
|
||||
| 社区论坛 (Community) | https://www.ossez.com/c/computer-technology/7 |
|
||||
| 社区论坛 (Community) | https://www.ossez.com/tag/chat-gpt |
|
||||
|
||||
# 公众平台
|
||||
|
||||
|
@ -37,6 +37,12 @@ code.
|
|||
|
||||
![](https://cdn.ossez.com/img/sharkfly/sharkfly-qr-wechat-search-w400.png)
|
||||
|
||||
关注公众号以后,可以通过向这个公众号发送消息来测试 ChatGPT 的微信消息集成功能。
|
||||
|
||||
<img src="https://cdn.ossez.com/discourse-uploads/original/2X/5/5f1cf67c4349029be682a30268df06d77202d510.png" width="600">
|
||||
|
||||
有关更多 ChatGPT 的讨论,请访问我们的 [ChatGPT 社区](https://www.ossez.com/tag/chat-gpt)。
|
||||
|
||||
## 头条号
|
||||
|
||||
我们也在头条号上创建了我们的公众号,请扫描下面的 QR 关注我们的头条号。
|
||||
|
|
|
@ -8,13 +8,12 @@ import org.junit.jupiter.api.Test;
|
|||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
|
||||
|
||||
public class CompletionTest {
|
||||
|
||||
String token = "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"; //System.getenv("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");
|
||||
String token = System.getenv("OPENAI_TOKEN");
|
||||
OpenAiService service = new OpenAiService(token);
|
||||
|
||||
@Test
|
||||
|
|
|
@ -8,8 +8,7 @@ import org.junit.jupiter.api.Test;
|
|||
import static org.junit.jupiter.api.Assertions.assertNotNull;
|
||||
|
||||
public class EditTest {
|
||||
|
||||
String token = "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";
|
||||
String token = System.getenv("OPENAI_TOKEN");
|
||||
OpenAiService service = new OpenAiService(token);
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue