Skip to content

Commit

Permalink
add done_reason to chat and generate responses (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceMacD authored May 10, 2024
1 parent 07c2e1b commit 0a5f7de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export interface GenerateResponse {
created_at: Date
response: string
done: boolean
done_reason: string
context: number[]
total_duration: number
load_duration: number
Expand All @@ -139,6 +140,7 @@ export interface ChatResponse {
created_at: Date
message: Message
done: boolean
done_reason: string
total_duration: number
load_duration: number
prompt_eval_count: number
Expand Down

0 comments on commit 0a5f7de

Please sign in to comment.