diff --git a/ai.go b/ai.go index 59cd04dc62..a4a61b73b2 100644 --- a/ai.go +++ b/ai.go @@ -18,13 +18,7 @@ import ( // from the environment automatically. You should not instantiate this service // directly, and instead use the [NewAIService] method instead. type AIService struct { - Options []option.RequestOption - Huggingface *AIHuggingfaceService - Baai *AIBaaiService - OpenAI *AIOpenAIService - Microsoft *AIMicrosoftService - Meta *AIMetaService - Mistral *AIMistralService + Options []option.RequestOption } // NewAIService generates a new service that applies the given options to each @@ -33,12 +27,6 @@ type AIService struct { func NewAIService(opts ...option.RequestOption) (r *AIService) { r = &AIService{} r.Options = opts - r.Huggingface = NewAIHuggingfaceService(opts...) - r.Baai = NewAIBaaiService(opts...) - r.OpenAI = NewAIOpenAIService(opts...) - r.Microsoft = NewAIMicrosoftService(opts...) - r.Meta = NewAIMetaService(opts...) - r.Mistral = NewAIMistralService(opts...) return } diff --git a/aibaai.go b/aibaai.go deleted file mode 100644 index e0348a845b..0000000000 --- a/aibaai.go +++ /dev/null @@ -1,24 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -package cloudflare - -import ( - "github.com/cloudflare/cloudflare-sdk-go/option" -) - -// AIBaaiService contains methods and other services that help with interacting -// with the cloudflare API. Note, unlike clients, this service does not read -// variables from the environment automatically. You should not instantiate this -// service directly, and instead use the [NewAIBaaiService] method instead. -type AIBaaiService struct { - Options []option.RequestOption -} - -// NewAIBaaiService generates a new service that applies the given options to each -// request. These options are applied after the parent client's options (if there -// is one), and before any request-specific options. -func NewAIBaaiService(opts ...option.RequestOption) (r *AIBaaiService) { - r = &AIBaaiService{} - r.Options = opts - return -} diff --git a/aihuggingface.go b/aihuggingface.go deleted file mode 100644 index 48ead4e019..0000000000 --- a/aihuggingface.go +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -package cloudflare - -import ( - "github.com/cloudflare/cloudflare-sdk-go/option" -) - -// AIHuggingfaceService contains methods and other services that help with -// interacting with the cloudflare API. Note, unlike clients, this service does not -// read variables from the environment automatically. You should not instantiate -// this service directly, and instead use the [NewAIHuggingfaceService] method -// instead. -type AIHuggingfaceService struct { - Options []option.RequestOption -} - -// NewAIHuggingfaceService generates a new service that applies the given options -// to each request. These options are applied after the parent client's options (if -// there is one), and before any request-specific options. -func NewAIHuggingfaceService(opts ...option.RequestOption) (r *AIHuggingfaceService) { - r = &AIHuggingfaceService{} - r.Options = opts - return -} diff --git a/aimeta.go b/aimeta.go deleted file mode 100644 index a196450777..0000000000 --- a/aimeta.go +++ /dev/null @@ -1,24 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -package cloudflare - -import ( - "github.com/cloudflare/cloudflare-sdk-go/option" -) - -// AIMetaService contains methods and other services that help with interacting -// with the cloudflare API. Note, unlike clients, this service does not read -// variables from the environment automatically. You should not instantiate this -// service directly, and instead use the [NewAIMetaService] method instead. -type AIMetaService struct { - Options []option.RequestOption -} - -// NewAIMetaService generates a new service that applies the given options to each -// request. These options are applied after the parent client's options (if there -// is one), and before any request-specific options. -func NewAIMetaService(opts ...option.RequestOption) (r *AIMetaService) { - r = &AIMetaService{} - r.Options = opts - return -} diff --git a/aimicrosoft.go b/aimicrosoft.go deleted file mode 100644 index 51e3480c42..0000000000 --- a/aimicrosoft.go +++ /dev/null @@ -1,25 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -package cloudflare - -import ( - "github.com/cloudflare/cloudflare-sdk-go/option" -) - -// AIMicrosoftService contains methods and other services that help with -// interacting with the cloudflare API. Note, unlike clients, this service does not -// read variables from the environment automatically. You should not instantiate -// this service directly, and instead use the [NewAIMicrosoftService] method -// instead. -type AIMicrosoftService struct { - Options []option.RequestOption -} - -// NewAIMicrosoftService generates a new service that applies the given options to -// each request. These options are applied after the parent client's options (if -// there is one), and before any request-specific options. -func NewAIMicrosoftService(opts ...option.RequestOption) (r *AIMicrosoftService) { - r = &AIMicrosoftService{} - r.Options = opts - return -} diff --git a/aimistral.go b/aimistral.go deleted file mode 100644 index 1120a69ef1..0000000000 --- a/aimistral.go +++ /dev/null @@ -1,24 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -package cloudflare - -import ( - "github.com/cloudflare/cloudflare-sdk-go/option" -) - -// AIMistralService contains methods and other services that help with interacting -// with the cloudflare API. Note, unlike clients, this service does not read -// variables from the environment automatically. You should not instantiate this -// service directly, and instead use the [NewAIMistralService] method instead. -type AIMistralService struct { - Options []option.RequestOption -} - -// NewAIMistralService generates a new service that applies the given options to -// each request. These options are applied after the parent client's options (if -// there is one), and before any request-specific options. -func NewAIMistralService(opts ...option.RequestOption) (r *AIMistralService) { - r = &AIMistralService{} - r.Options = opts - return -} diff --git a/aiopenai.go b/aiopenai.go deleted file mode 100644 index 38484bca94..0000000000 --- a/aiopenai.go +++ /dev/null @@ -1,24 +0,0 @@ -// File generated from our OpenAPI spec by Stainless. - -package cloudflare - -import ( - "github.com/cloudflare/cloudflare-sdk-go/option" -) - -// AIOpenAIService contains methods and other services that help with interacting -// with the cloudflare API. Note, unlike clients, this service does not read -// variables from the environment automatically. You should not instantiate this -// service directly, and instead use the [NewAIOpenAIService] method instead. -type AIOpenAIService struct { - Options []option.RequestOption -} - -// NewAIOpenAIService generates a new service that applies the given options to -// each request. These options are applied after the parent client's options (if -// there is one), and before any request-specific options. -func NewAIOpenAIService(opts ...option.RequestOption) (r *AIOpenAIService) { - r = &AIOpenAIService{} - r.Options = opts - return -} diff --git a/api.md b/api.md index 80b18adebc..b6e9517f16 100644 --- a/api.md +++ b/api.md @@ -50,18 +50,6 @@ Methods: - client.AI.RunModel(ctx context.Context, accountIdentifier string, modelName string, body cloudflare.AIRunModelParams) (cloudflare.AIRunModelResponse, error) -## Huggingface - -## Baai - -## OpenAI - -## Microsoft - -## Meta - -## Mistral - # LoadBalancers Response Types: