model.svelte.ts

Declarations
#

6 declarations

view source

Model
#

model.svelte.ts view source

inheritance

extends:
  • Cell<typeof ModelJson>

name

type ModelName

provider_name

type ProviderName

tags

type Array<string>

architecture

type string | undefined

parameter_count

type number | undefined

context_window

type number | undefined

output_token_limit

type number | undefined

embedding_length

type number | undefined

filesize

Size in gigabytes.

type number | undefined

cost_input

type number | undefined

cost_output

type number | undefined

training_cutoff

type string | undefined

ollama_list_response_item

type OllamaListResponseItem | undefined

ollama_show_response

type OllamaShowResponse | undefined

ollama_show_response_loaded

type boolean

ollama_show_response_loading

type boolean

ollama_show_response_error

type string | undefined

downloaded

For models that run locally, this is a boolean indicating if the model is downloaded. Is undefined for non-local models.

type boolean | undefined

readonly

provider

Lookup the provider for this model.

type Provider | undefined

readonly

context_window_formatted

type string | null

readonly

ollama_modified_at

Get the modified date from Ollama data if available.

type Date | undefined

readonly

needs_ollama_details

Check if this model needs its details loaded.

type boolean

readonly

loaded

Check if this model is currently loaded/running. For Ollama models, this checks if the model is in the running models set.

type boolean

readonly

constructor

type new (options: ModelOptions): Model

options

navigate_to_download

Download this model. Currently only works for Ollama models.

type (): Promise<void>

returns Promise<void>

navigate_to_provider_model_view

Navigate to the model view. Currently only works for Ollama models.

type (): Promise<void>

returns Promise<void>

ModelJson
#

model.svelte.ts view source

ZodObject<{ id: ZodDefault<$ZodBranded<ZodUUID, "Uuid">>; created: ZodDefault<$ZodBranded<ZodISODateTime, "Datetime">>; ... 17 more ...; ollama_show_response_error: ZodOptional<...>; }, $strict>

ModelJsonInput
#

model.svelte.ts view source

{ name: string; provider_name: "ollama" | "claude" | "chatgpt" | "gemini"; id?: string | undefined; created?: string | undefined; updated?: string | undefined; tags?: string[] | undefined; ... 13 more ...; ollama_show_response_error?: string | undefined; }

ModelName
#

ModelOptions
#

ModelSchema
#

Depends on
#

Imported by
#