MCPcopy Create free account
hub / github.com/LagPixelLOL/ChatGPTCLIBot / remove_first_key

Function remove_first_key

main/interface/network/APIKey.cpp:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 void remove_first_key() {
41 if (!api_keys_.empty()) {
42 api_keys_.erase(api_keys_.begin());
43 }
44 }
45
46 /**
47 * Check if the API key has at least one key.

Callers 1

p_on_invalid_keyFunction · 0.85

Calls 3

emptyMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected