mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
fixed ai timeout bug (#617)
This commit is contained in:
parent
50662c2152
commit
ac91fa8596
@ -2735,7 +2735,7 @@ func doOpenAICmdInfoCompletion(cmd *sstore.CmdType, clientId string, opts *sstor
|
|||||||
}
|
}
|
||||||
writePacketToUpdateBus(ctx, cmd, asstMessagePk)
|
writePacketToUpdateBus(ctx, cmd, asstMessagePk)
|
||||||
packetTimeout := OpenAIPacketTimeout
|
packetTimeout := OpenAIPacketTimeout
|
||||||
if opts.Timeout >= 0 {
|
if opts.Timeout > 0 {
|
||||||
packetTimeout = time.Duration(opts.Timeout) * time.Millisecond
|
packetTimeout = time.Duration(opts.Timeout) * time.Millisecond
|
||||||
}
|
}
|
||||||
doneWaitingForPackets := false
|
doneWaitingForPackets := false
|
||||||
@ -2830,7 +2830,7 @@ func doOpenAIStreamCompletion(cmd *sstore.CmdType, clientId string, opts *sstore
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
packetTimeout := OpenAIPacketTimeout
|
packetTimeout := OpenAIPacketTimeout
|
||||||
if opts.Timeout >= 0 {
|
if opts.Timeout > 0 {
|
||||||
packetTimeout = time.Duration(opts.Timeout) * time.Millisecond
|
packetTimeout = time.Duration(opts.Timeout) * time.Millisecond
|
||||||
}
|
}
|
||||||
doneWaitingForPackets := false
|
doneWaitingForPackets := false
|
||||||
|
Loading…
Reference in New Issue
Block a user