Skip to content

Commit

Permalink
Update types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
babaohuang committed Dec 14, 2023
1 parent 318bfea commit b3f70a5
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
export interface ChatMessagePart {
text: string;
}

export interface ChatMessage {
role: 'system' | 'user' | 'assistant'
content: string
role: 'model' | 'user';
parts: ChatMessagePart[];
}

export interface ErrorMessage {
code: string
message: string
}
code: string;
message: string;
}

0 comments on commit b3f70a5

Please sign in to comment.