MCPcopy Create free account
hub / github.com/CL-lau/SQL-GPT / ApiKey

Class ApiKey

gpt/check_api_key.py:10–17  ·  view source on GitHub ↗

Check the Api key is valid or not

Source from the content-addressed store, hash-verified

8
9
10class ApiKey(ABC):
11 """Check the Api key is valid or not"""
12 query = 'This is a test.'
13
14 @classmethod
15 @abstractmethod
16 def is_valid(cls):
17 pass
18
19
20class OpenAiAPI(ApiKey):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected