Skip to content

Commit

Permalink
feat: OpenAPI spec update
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 8, 2024
1 parent 5e5f9ae commit 58d7a70
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 171 deletions.
14 changes: 1 addition & 13 deletions ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down
24 changes: 0 additions & 24 deletions aibaai.go

This file was deleted.

25 changes: 0 additions & 25 deletions aihuggingface.go

This file was deleted.

24 changes: 0 additions & 24 deletions aimeta.go

This file was deleted.

25 changes: 0 additions & 25 deletions aimicrosoft.go

This file was deleted.

24 changes: 0 additions & 24 deletions aimistral.go

This file was deleted.

24 changes: 0 additions & 24 deletions aiopenai.go

This file was deleted.

12 changes: 0 additions & 12 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@ Methods:

- <code title="post /accounts/{account_identifier}/ai/run/{model_name}">client.AI.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#AIService.RunModel">RunModel</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, accountIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, modelName <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#AIRunModelParams">AIRunModelParams</a>) (<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go">cloudflare</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-sdk-go#AIRunModelResponse">AIRunModelResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Huggingface

## Baai

## OpenAI

## Microsoft

## Meta

## Mistral

# LoadBalancers

Response Types:
Expand Down

0 comments on commit 58d7a70

Please sign in to comment.