fix lint type error

This commit is contained in:
duanfuxiang
2025-02-18 13:04:37 +08:00
parent 653744c98a
commit 0c9589f380
5 changed files with 11 additions and 8 deletions

View File

@@ -30,7 +30,8 @@ export type ResponseUsage = {
type NonStreamingChoice = {
finish_reason: string | null // Depends on the model. Ex: 'stop' | 'length' | 'content_filter' | 'tool_calls' | 'function_call'
message: {
content: string | null
content: string | null
reasoning_content?: string | null
role: string
}
error?: Error
@@ -40,7 +41,7 @@ type StreamingChoice = {
finish_reason: string | null
delta: {
content: string | null
reasoning_content: string | null
reasoning_content?: string | null
role?: string
}
error?: Error