MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetGlobalRateLimit

Function GetGlobalRateLimit

pkg/aiusechat/usechat.go:175–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173}
174
175func GetGlobalRateLimit() *uctypes.RateLimitInfo {
176 rateLimitLock.Lock()
177 defer rateLimitLock.Unlock()
178 return globalRateLimitInfo
179}
180
181func runAIChatStep(ctx context.Context, sseHandler *sse.SSEHandlerCh, backend UseChatBackend, chatOpts uctypes.WaveChatOpts, cont *uctypes.WaveContinueResponse) (*uctypes.WaveStopReason, []uctypes.GenAIMessage, error) {
182 if chatOpts.Config.APIType == uctypes.APIType_OpenAIResponses && shouldUseChatCompletionsAPI(chatOpts.Config.Model) {

Callers 2

shouldUsePremiumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected