MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / SetFirstResponseTime

Method SetFirstResponseTime

relay/common/relay_info.go:301–306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299}
300
301func (info *RelayInfo) SetFirstResponseTime() {
302 if info.isFirstResponse {
303 info.FirstResponseTime = time.Now()
304 info.isFirstResponse = false
305 }
306}
307
308func (info *RelayInfo) HasSendResponse() bool {
309 return info.FirstResponseTime.After(info.StartTime)

Callers 3

OpenaiRealtimeHandlerFunction · 0.80
awsStreamHandlerFunction · 0.80
StreamScannerHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected