Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion site/e2e/tests/agents/chatSearch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test("searches chats with backend full-text search", async ({ page }) => {
const searchResponse = page.waitForResponse((response) => {
const url = new URL(response.url());
return (
url.pathname === "/api/experimental/chats" &&
url.pathname === "/api/v2/chats" &&
url.searchParams.get("q") === 'search:"full-text-smoke"'
);
});
Expand Down
12 changes: 6 additions & 6 deletions site/src/api/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ describe("api.ts", () => {

it.each<[string, () => Promise<unknown>, unknown]>([
[
"/api/experimental/organizations/organization%2Fid/chats/models",
"/api/v2/organizations/organization%2Fid/chats/models",
() => API.experimental.getChatModels(organizationId),
{ models: [], providers: [], unsupported_providers: [] },
],
Expand Down Expand Up @@ -466,7 +466,7 @@ describe("api.ts", () => {

it.each<[string, () => Promise<unknown>]>([
[
"/api/experimental/organizations/organization%2Fid/chats/models",
"/api/v2/organizations/organization%2Fid/chats/models",
() => API.experimental.getChatModels(organizationId),
],
])("rethrows axios errors for %s", async (path, request) => {
Expand Down Expand Up @@ -501,7 +501,7 @@ describe("api.ts", () => {
).resolves.toBeUndefined();

const itemPath =
"/api/experimental/organizations/organization%2Fid/chats/models/model%2Fid";
"/api/v2/organizations/organization%2Fid/chats/models/model%2Fid";
expect(axiosInstance.get).toHaveBeenCalledWith(itemPath);
expect(axiosInstance.patch).toHaveBeenCalledWith(itemPath, {
enabled: true,
Expand All @@ -523,7 +523,7 @@ describe("api.ts", () => {
).resolves.toBeUndefined();

const aclPath =
"/api/experimental/organizations/organization%2Fid/chats/models/model%2Fid/acl";
"/api/v2/organizations/organization%2Fid/chats/models/model%2Fid/acl";
expect(axiosInstance.get).toHaveBeenCalledWith(aclPath);
expect(axiosInstance.patch).toHaveBeenCalledWith(aclPath, acl);
});
Expand Down Expand Up @@ -645,7 +645,7 @@ describe("api.ts", () => {
const result = await API.experimental.getChatACL(chatId);

expect(axiosInstance.get).toHaveBeenCalledWith(
`/api/experimental/chats/${chatId}/acl`,
`/api/v2/chats/${chatId}/acl`,
);
expect(result).toStrictEqual(chatACL);
});
Expand All @@ -660,7 +660,7 @@ describe("api.ts", () => {
await API.experimental.updateChatACL(chatId, request);

expect(axiosInstance.patch).toHaveBeenCalledWith(
`/api/experimental/chats/${chatId}/acl`,
`/api/v2/chats/${chatId}/acl`,
request,
);
});
Expand Down
Loading
Loading