Skip to content

Commit

Permalink
Add Granite 3.1 8B to chatbot
Browse files Browse the repository at this point in the history
  • Loading branch information
TamiTakamiya committed Jan 13, 2025
1 parent 6a65fc3 commit b42bb42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ansible_ai_connect_chatbot/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,10 @@ test("Debug mode test", async () => {
await expect
.element(view.getByRole("menuitem", { name: "granite3-8b" }))
.toBeTruthy();
await view.getByRole("menuitem", { name: "granite3-8b" }).click();
await expect
.element(view.getByRole("menuitem", { name: "granite31-8b" }))
.toBeTruthy();
await view.getByRole("menuitem", { name: "granite31-8b" }).click();

await sendMessage("Hello");
await expect
Expand Down
1 change: 1 addition & 0 deletions ansible_ai_connect_chatbot/src/useChatbot/useChatbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const botName =

export const modelsSupported: LLMModel[] = [
{ model: "granite3-8b", provider: "my_rhoai_g3" },
{ model: "granite31-8b", provider: "my_rhoai_g31" },
];

export const readCookie = (name: string): string | null => {
Expand Down

0 comments on commit b42bb42

Please sign in to comment.