Skip to content

Commit

Permalink
fix advanced settings issue (#3849)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren authored Sep 12, 2024
1 parent 1f13d80 commit 9ef79cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion frontend/src/components/modals/settings/ModelSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ export function ModelSelector({

const handleChangeModel = (model: string) => {
const separator = models[selectedProvider || ""]?.separator || "";
const fullModel = selectedProvider + separator + model;
let fullModel = selectedProvider + separator + model;
if (selectedProvider === "openai") {
// LiteLLM lists OpenAI models without the openai/ prefix
fullModel = model;
}
setLitellmId(fullModel);
onModelChange(fullModel);
setSelectedModel(model);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/services/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type Settings = {
};

export const DEFAULT_SETTINGS: Settings = {
LLM_MODEL: "openai/gpt-4o",
LLM_MODEL: "gpt-4o",
LLM_BASE_URL: "",
AGENT: "CodeActAgent",
LANGUAGE: "en",
Expand Down

0 comments on commit 9ef79cb

Please sign in to comment.