Skip to content

Commit 7347ea3

Browse files
authored
Remove redundant granite3-1-8b that is unsupported with lightspeed-stack. (#1735)
1 parent cab0611 commit 7347ea3

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

aap_chatbot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ CHATBOT_DEFAULT_PROVIDER=wisdom
6767
"ModelPipelineChatBot": {
6868
"config": {
6969
"inference_url": "http://127.0.0.1:8080",
70-
"model_id": "granite3-8b"
70+
"model_id": "granite-3.3-8b-instruct"
7171
}
7272
}
7373
}

aap_chatbot/src/useChatbot/useChatbot.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const botName =
3333
ANSIBLE_LIGHTSPEED_PRODUCT_NAME;
3434

3535
export const modelsSupported: LLMModel[] = [
36-
{ model: "granite3-1-8b", provider: "my_rhoai_g31" },
36+
{ model: "granite-3.3-8b-instruct", provider: "rhoai" },
3737
];
3838

3939
export const readCookie = (name: string): string | null => {
@@ -178,7 +178,7 @@ export const useChatbot = () => {
178178
return id;
179179
};
180180

181-
const [selectedModel, setSelectedModel] = useState("granite3-1-8b");
181+
const [selectedModel, setSelectedModel] = useState("granite-3.3-8b-instruct");
182182
const [systemPrompt, setSystemPrompt] = useState(QUERY_SYSTEM_INSTRUCTION);
183183
const [hasStopButton, setHasStopButton] = useState<boolean>(false);
184184
const [abortController, setAbortController] = useState(new AbortController());

ansible_ai_connect_chatbot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ CHATBOT_DEFAULT_PROVIDER=wisdom
6767
"ModelPipelineChatBot": {
6868
"config": {
6969
"inference_url": "http://127.0.0.1:8080",
70-
"model_id": "granite3-8b"
70+
"model_id": "granite-3.3-8b-instruct"
7171
}
7272
}
7373
}

ansible_ai_connect_chatbot/src/App.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,8 @@ test("Debug mode test", async () => {
662662
mockAxios(200);
663663

664664
await renderApp(true);
665-
await expect.element(page.getByText("granite3-1-8b")).toBeVisible();
666-
await page.getByText("granite3-1-8b").click();
665+
await expect.element(page.getByText("granite-3.3-8b-instruct")).toBeVisible();
666+
await page.getByText("granite-3.3-8b-instruct").click();
667667
await expect
668668
.element(page.getByRole("menuitem", { name: "granite-3.3-8b-instruct" }))
669669
.toBeVisible();

ansible_ai_connect_chatbot/src/useChatbot/useChatbot.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const botName =
3333
ANSIBLE_LIGHTSPEED_PRODUCT_NAME;
3434

3535
export const modelsSupported: LLMModel[] = [
36-
{ model: "granite3-1-8b", provider: "my_rhoai_g31" },
3736
{ model: "granite-3.3-8b-instruct", provider: "my_rhoai_dev" },
3837
];
3938

@@ -179,7 +178,7 @@ export const useChatbot = () => {
179178
return id;
180179
};
181180

182-
const [selectedModel, setSelectedModel] = useState("granite3-1-8b");
181+
const [selectedModel, setSelectedModel] = useState("granite-3.3-8b-instruct");
183182
const [systemPrompt, setSystemPrompt] = useState(QUERY_SYSTEM_INSTRUCTION);
184183
const [hasStopButton, setHasStopButton] = useState<boolean>(false);
185184
const [abortController, setAbortController] = useState(new AbortController());

0 commit comments

Comments
 (0)