Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou committed Jul 4, 2024
1 parent 97aa72e commit 31d9444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utils/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { LLMModel } from "../client/api";

const customProvider = (modelName: string) => ({
id: modelName,
providerName: "",
providerName: "Custom",
providerType: "custom",
});

Expand Down Expand Up @@ -50,7 +50,7 @@ export function collectModelTable(
// 1. find model by name(), and set available value
let count = 0;
for (const fullName in modelTable) {
if (fullName.includes(name)) {
if (fullName.split("@").shift() == name) {
count += 1;
modelTable[fullName]["available"] = available;
if (displayName) {
Expand Down

0 comments on commit 31d9444

Please sign in to comment.