Skip to content

Commit

Permalink
prettier formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
howlowck committed Sep 18, 2024
1 parent 18c73cf commit a337dcd
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions sdk/js/packages/client/src/model/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,42 @@ export interface AIChatFile {
data: Uint8Array | File | Buffer;
}

export interface AIChatMessage<ContextType extends GenericContext = GenericContext> {
export interface AIChatMessage<
ContextType extends GenericContext = GenericContext,
> {
role: AIChatRole;
content: string;
context?: ContextType;
files?: AIChatFile[];
}

export interface AIChatMessageDelta<ContextType extends GenericContext = GenericContext> {
export interface AIChatMessageDelta<
ContextType extends GenericContext = GenericContext,
> {
role?: AIChatRole;
content?: string;
context?: ContextType;
}

export interface AIChatCompletion<ContextType extends GenericContext = GenericContext> {
export interface AIChatCompletion<
ContextType extends GenericContext = GenericContext,
> {
message: AIChatMessage;
sessionState?: unknown;
context?: ContextType;
}

export interface AIChatCompletionDelta<ContextType extends GenericContext = GenericContext> {
export interface AIChatCompletionDelta<
ContextType extends GenericContext = GenericContext,
> {
delta: AIChatMessageDelta;
sessionState?: unknown;
context?: ContextType;
}

export interface AIChatCompletionOptions<ContextType extends GenericContext = GenericContext> {
export interface AIChatCompletionOptions<
ContextType extends GenericContext = GenericContext,
> {
context?: ContextType;
sessionState?: unknown;
}
Expand Down

0 comments on commit a337dcd

Please sign in to comment.