API Client for interfacing with the Gemini Next Gen API API.

Hierarchy (View Summary)

Constructors

Properties

apiKey: null | string
apiVersion: string
baseURL: string
fetchOptions: undefined | MergedRequestInit
logger: Logger
logLevel: undefined | LogLevel
maxRetries: number
timeout: number
APIConnectionError: typeof APIConnectionError = Errors.APIConnectionError
APIConnectionTimeoutError: typeof APIConnectionTimeoutError = Errors.APIConnectionTimeoutError
APIError: typeof APIError = Errors.APIError
APIUserAbortError: typeof APIUserAbortError = Errors.APIUserAbortError
AuthenticationError: typeof AuthenticationError = Errors.AuthenticationError
BadRequestError: typeof BadRequestError = Errors.BadRequestError
ConflictError: typeof ConflictError = Errors.ConflictError
DEFAULT_TIMEOUT: number = 60000
GeminiNextGenAPIClient: typeof GeminiNextGenAPIClient = ...
GeminiNextGenAPIClientError: typeof GeminiNextGenAPIClientError = Errors.GeminiNextGenAPIClientError
InternalServerError: typeof InternalServerError = Errors.InternalServerError
NotFoundError: typeof NotFoundError = Errors.NotFoundError
PermissionDeniedError: typeof PermissionDeniedError = Errors.PermissionDeniedError
RateLimitError: typeof RateLimitError = Errors.RateLimitError
toFile: (
    value: ToFileInput | PromiseLike<ToFileInput>,
    name?: null | string,
    options?: FilePropertyBag,
) => Promise<File> = Uploads.toFile

Type declaration

UnprocessableEntityError: typeof UnprocessableEntityError = Errors.UnprocessableEntityError

Methods

  • Parameters

    • path: string
    • query: undefined | null | Record<string, unknown>
    • OptionaldefaultBaseURL: string

    Returns string