SystemApi

Method

HTTP request

Description

get_h2ogpt_system_info

GET /system/h2ogpt-info

Gets H2OGPT system information.

get_h2ogpt_system_info

H2OGPTSystemInfo get_h2ogpt_system_info()

Gets H2OGPT system information.

Gets H2OGPT system information.

Example

  • Bearer Authentication (bearerAuth):

import h2ogpte.rest_async
from h2ogpte.rest_async.models.h2_ogpt_system_info import H2OGPTSystemInfo
from h2ogpte.rest_async.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://h2ogpte.genai.h2o.ai/api/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = h2ogpte.rest_async.Configuration(
    host = "https://h2ogpte.genai.h2o.ai/api/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearerAuth
configuration = h2ogpte.rest_async.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
async with h2ogpte.rest_async.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = h2ogpte.rest_async.SystemApi(api_client)

    try:
        # Gets H2OGPT system information.
        api_response = await api_instance.get_h2ogpt_system_info()
        print("The response of SystemApi->get_h2ogpt_system_info:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling SystemApi->get_h2ogpt_system_info: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

H2OGPTSystemInfo

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

Successful operation

-

401

Unauthorized - Invalid or missing API key

-