update
This commit is contained in:
12
test/ai.ts
Normal file
12
test/ai.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { AiBase } from "../src/ai/index.ts";
|
||||
|
||||
import { token, showMore, cookie } from "./common.ts";
|
||||
|
||||
const repo = new AiBase({ group: "kevisual/demo", token: token, cookie: cookie });
|
||||
|
||||
const res = await repo.autoPr("test-cnb", {
|
||||
body: "请帮我给README文件添加一句问候语",
|
||||
title: "给README添加问候语",
|
||||
});
|
||||
|
||||
console.log("res", showMore(res));
|
||||
Reference in New Issue
Block a user