• Helper function that gets the API Key for a given AI Driver Name using the AIAPIKeys class or any registered sub-class of AIAPIKeys

    Parameters

    • AIDriverName: string
    • Optional apiKeys: AIAPIKey[]

      optional array of AIAPIKey objects to check first before falling back to the global AIAPIKeys class

    • Optional verbose: boolean

      optional flag to enable verbose logging

    Returns string