Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
import { KilnError, createKilnError } from "$lib/utils/error_handlers"
import { onMount } from "svelte"
import FormElement from "$lib/utils/form_element.svelte"
import { provider_name_from_id } from "$lib/stores"
import {
provider_name_from_id,
clear_available_models_cache,
} from "$lib/stores"
import Dialog from "$lib/ui/dialog.svelte"
import { getContext } from "svelte"
import type { Writable } from "svelte/store"
Expand Down Expand Up @@ -256,6 +259,9 @@
// Refresh list
await load_data()

// Invalidate cached available_models so dropdowns refetch (cache otherwise short-circuits)
clear_available_models_cache()

return true
}

Expand Down Expand Up @@ -296,6 +302,9 @@

// Refresh list
await load_data()

// Invalidate cached available_models so dropdowns refetch (cache otherwise short-circuits)
clear_available_models_cache()
}

function get_provider_display_name(model: UserModelEntry): string {
Expand Down
Loading