Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit b46d851

Browse files
committed
Add new release
1 parent df219ce commit b46d851

6 files changed

Lines changed: 264 additions & 281 deletions

File tree

__tests__/r2rClientIntegrationSuperUser.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ describe("r2rClient Integration Tests", () => {
7474
await expect(client.agent({ messages })).resolves.not.toThrow();
7575
}, 30000);
7676

77+
test("Score completion", async () => {
78+
const message_id = "272c09d7-7958-5f77-a4e6-51649af999f5";
79+
const score = 0.5;
80+
81+
await expect(
82+
client.scoreCompletion(message_id, score),
83+
).resolves.not.toThrow();
84+
});
85+
7786
test("Generate RAG Chat response with streaming", async () => {
7887
const messages = [
7988
{ role: "system", content: "You are a helpful assistant." },

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "r2r-js",
3-
"version": "1.2.14",
3+
"version": "1.2.15",
44
"description": "",
55
"main": "dist/index.js",
66
"browser": "dist/index.browser.js",

0 commit comments

Comments
 (0)