@prismshadow/penguin-library-session · library/session/src/ports.ts:39

SessionDefaultModel

interface

Where a Project's default model reference lives. The server's ProjectConfigStore satisfies this structurally (the trace domain's pricing port is the same shape of port).

API

@Interface()
export abstract class SessionDefaultModel {
  abstract getDefaultModelRef(projectId: string): Promise<ModelRef | undefined>;
}

Members (1)

getDefaultModelRef

getDefaultModelRef(projectId: string): Promise<ModelRef | undefined>

The Project's current default model reference; undefined when it has none (400 no_default_model).

@paramprojectIdstring
@returnsPromise<ModelRef | undefined>