\DiscoveryAPI
All URIs are relative to http://localhost:8080
| Method | HTTP request | Description |
|---|---|---|
| ListModels | Get /models | List available model versions |
ListModels
ModelsResponse ListModels(ctx).Execute()
List available model versions
Example
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/CE-RISE-software/hex-core-sdk-go"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.DiscoveryAPI.ListModels(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DiscoveryAPI.ListModels``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListModels`: ModelsResponse
fmt.Fprintf(os.Stdout, "Response from `DiscoveryAPI.ListModels`: %v\n", resp)
}
Path Parameters
This endpoint does not need any parameter.
Other Parameters
Other parameters are passed through a pointer to a apiListModelsRequest struct via the builder pattern
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]