Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Settings.tsx #219

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions frontend/src/components/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function Settings({ trigger }: { trigger: JSX.Element }) {
// Defaulting to the 3rd model which is currently llama3-70b
setModel(`groq/${data.groq[2].id}`)
} else if (data.ollama.length > 0) {
setModel(`ollama/${data.ollama[0].name}`)
setModel(`ollama/${data.ollama[0].model}`)
} else if (data.litellm.length > 0) {
setModel(`litellm/${data.litellm[0].id}`)
}
Expand Down Expand Up @@ -229,8 +229,8 @@ export default function Settings({ trigger }: { trigger: JSX.Element }) {
<SelectGroup>
<SelectLabel>Ollama</SelectLabel>
{data.ollama.map(m => (
<SelectItem key={m.digest} value={`ollama/${m.name}`}>
{slugToNiceName(m.name)}
<SelectItem key={m.digest} value={`ollama/${m.model}`}>
{slugToNiceName(m.model)}
</SelectItem>
))}
</SelectGroup>
Expand Down