Skip to content

Types

Provider-agnostic LLM types.

Interfaces

BreakdownResponse

Defined in: src/shared/llm/types.ts:29

Response from /llm/breakdown: the focused word + its explanation.

Properties

Property Type Defined in
explanation string src/shared/llm/types.ts:31
focus EnrichedJapaneseWord | null src/shared/llm/types.ts:30

ExplanationResponse

Defined in: src/shared/llm/types.ts:35

Response from /llm/explain_sentence.

Properties

Property Type Defined in
explanation string src/shared/llm/types.ts:36

LlmTemplate

Defined in: src/shared/llm/types.ts:11

A profile's LLM template (/profiles/template). model is a provider:model selector (e.g. "openai:gpt-4.1-mini").

Properties

Property Type Description Defined in
id string - src/shared/llm/types.ts:12
model string - src/shared/llm/types.ts:15
prompt string - src/shared/llm/types.ts:14
srt_model string Subtitle-fix model selector (empty = fall back to model). src/shared/llm/types.ts:19
srt_sys_msg string Subtitle-fix system message (empty = server default). src/shared/llm/types.ts:17
sys_msg string - src/shared/llm/types.ts:13

ProviderStatus

Defined in: src/shared/llm/types.ts:23

Availability of an LLM provider, from /llm/providers.

Properties

Property Type Defined in
available boolean src/shared/llm/types.ts:25
provider string src/shared/llm/types.ts:24