未验证 提交 1b69e40d 编写于 作者: 小傅哥 提交者: GitHub

Update README.md

上级 8f9b300d
......@@ -39,6 +39,23 @@
### 2.1 代码执行
```java
import cn.bugstack.chatglm.model.*;
import cn.bugstack.chatglm.session.Configuration;
import cn.bugstack.chatglm.session.OpenAiSession;
import cn.bugstack.chatglm.session.OpenAiSessionFactory;
import cn.bugstack.chatglm.session.defaults.DefaultOpenAiSessionFactory;
import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.core.JsonProcessingException;
import lombok.extern.slf4j.Slf4j;
import okhttp3.sse.EventSource;
import okhttp3.sse.EventSourceListener;
import org.junit.Before;
import org.junit.Test;
import javax.annotation.Nullable;
import java.util.ArrayList;
import java.util.concurrent.CountDownLatch;
@Slf4j
public class ApiTest {
......@@ -97,7 +114,6 @@ public class ApiTest {
// 等待
new CountDownLatch(1).await();
}
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册