Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIKeyEnvVar = "GROK_API_KEY" TestAPIURL = "https://api.x.ai/v1/" )
APIKeyEnvVar is the environment variable name that stores the API key
Variables ¶
This section is empty.
Functions ¶
func GetTestAPIKey ¶
GetTestAPIKey retrieves an API key from environment variables If the environment variable doesn't exist, returns a test placeholder key
func SkipIfNoRealAPIKey ¶
SkipIfNoRealAPIKey skips the test if no real API key is provided Returns the API key if it exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.