All URIs are relative to https://api.qovery.com
| Method | HTTP request | Description |
|---|---|---|
| CreateLlmProvider | Post /organization/{organizationId}/llmProvider | Create an LLM provider |
| DeleteLlmProvider | Delete /llmProvider/{llmProviderId} | Delete an LLM provider |
| EditLlmProvider | Put /llmProvider/{llmProviderId} | Edit an LLM provider |
| GetLlmProvider | Get /llmProvider/{llmProviderId} | Get an LLM provider |
| ListLlmProviderModels | Get /llmProvider/{llmProviderId}/models | List the models of an LLM provider |
| ListLlmProviders | Get /organization/{organizationId}/llmProvider | List organization LLM providers |
LlmProviderResponse CreateLlmProvider(ctx, organizationId).LlmProviderRequest(llmProviderRequest).Execute()
Create an LLM provider
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
llmProviderRequest := *openapiclient.NewLlmProviderRequest("Name_example", openapiclient.LlmProviderType("CLAUDE")) // LlmProviderRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LLMProvidersAPI.CreateLlmProvider(context.Background(), organizationId).LlmProviderRequest(llmProviderRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LLMProvidersAPI.CreateLlmProvider``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateLlmProvider`: LlmProviderResponse
fmt.Fprintf(os.Stdout, "Response from `LLMProvidersAPI.CreateLlmProvider`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiCreateLlmProviderRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
llmProviderRequest | LlmProviderRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteLlmProvider(ctx, llmProviderId).Execute()
Delete an LLM provider
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
llmProviderId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | LLM Provider ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.LLMProvidersAPI.DeleteLlmProvider(context.Background(), llmProviderId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LLMProvidersAPI.DeleteLlmProvider``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| llmProviderId | string | LLM Provider ID |
Other parameters are passed through a pointer to a apiDeleteLlmProviderRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LlmProviderResponse EditLlmProvider(ctx, llmProviderId).LlmProviderRequest(llmProviderRequest).Execute()
Edit an LLM provider
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
llmProviderId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | LLM Provider ID
llmProviderRequest := *openapiclient.NewLlmProviderRequest("Name_example", openapiclient.LlmProviderType("CLAUDE")) // LlmProviderRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LLMProvidersAPI.EditLlmProvider(context.Background(), llmProviderId).LlmProviderRequest(llmProviderRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LLMProvidersAPI.EditLlmProvider``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditLlmProvider`: LlmProviderResponse
fmt.Fprintf(os.Stdout, "Response from `LLMProvidersAPI.EditLlmProvider`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| llmProviderId | string | LLM Provider ID |
Other parameters are passed through a pointer to a apiEditLlmProviderRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
llmProviderRequest | LlmProviderRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LlmProviderResponse GetLlmProvider(ctx, llmProviderId).Execute()
Get an LLM provider
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
llmProviderId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | LLM Provider ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LLMProvidersAPI.GetLlmProvider(context.Background(), llmProviderId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LLMProvidersAPI.GetLlmProvider``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetLlmProvider`: LlmProviderResponse
fmt.Fprintf(os.Stdout, "Response from `LLMProvidersAPI.GetLlmProvider`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| llmProviderId | string | LLM Provider ID |
Other parameters are passed through a pointer to a apiGetLlmProviderRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LlmProviderModelResponseList ListLlmProviderModels(ctx, llmProviderId).Execute()
List the models of an LLM provider
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
llmProviderId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | LLM Provider ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LLMProvidersAPI.ListLlmProviderModels(context.Background(), llmProviderId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LLMProvidersAPI.ListLlmProviderModels``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListLlmProviderModels`: LlmProviderModelResponseList
fmt.Fprintf(os.Stdout, "Response from `LLMProvidersAPI.ListLlmProviderModels`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| llmProviderId | string | LLM Provider ID |
Other parameters are passed through a pointer to a apiListLlmProviderModelsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LlmProviderResponseList ListLlmProviders(ctx, organizationId).Execute()
List organization LLM providers
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.LLMProvidersAPI.ListLlmProviders(context.Background(), organizationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `LLMProvidersAPI.ListLlmProviders``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListLlmProviders`: LlmProviderResponseList
fmt.Fprintf(os.Stdout, "Response from `LLMProvidersAPI.ListLlmProviders`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiListLlmProvidersRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]