Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewChatCompletionResource() resource.Resource
- func NewCompletionResource() resource.Resource
- func NewEmbeddingResource() resource.Resource
- func NewImageResource() resource.Resource
- type ChatCompletionResource
- func (r *ChatCompletionResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ChatCompletionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ChatCompletionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ChatCompletionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ChatCompletionResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ChatCompletionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ChatCompletionResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ChatCompletionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ChatCompletionResourceModel
- type CompletionResource
- func (r *CompletionResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *CompletionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *CompletionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *CompletionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *CompletionResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *CompletionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *CompletionResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *CompletionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type CompletionResourceModel
- type EmbeddingResource
- func (r *EmbeddingResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *EmbeddingResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *EmbeddingResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *EmbeddingResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *EmbeddingResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *EmbeddingResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *EmbeddingResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *EmbeddingResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type EmbeddingResourceModel
- type ImageResource
- func (r *ImageResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ImageResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ImageResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ImageResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ImageResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ImageResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ImageResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ImageResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ImageResourceModel
- type OpenaiProvider
- func (p *OpenaiProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *OpenaiProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *OpenaiProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *OpenaiProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *OpenaiProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type OpenaiProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCompletionResource ¶
func NewEmbeddingResource ¶
func NewImageResource ¶
Types ¶
type ChatCompletionResource ¶
type ChatCompletionResource struct {
// contains filtered or unexported fields
}
ChatCompletionResource defines the resource implementation.
func (*ChatCompletionResource) Configure ¶
func (r *ChatCompletionResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ChatCompletionResource) Create ¶
func (r *ChatCompletionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ChatCompletionResource) Delete ¶
func (r *ChatCompletionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ChatCompletionResource) ImportState ¶
func (r *ChatCompletionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ChatCompletionResource) Metadata ¶
func (r *ChatCompletionResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ChatCompletionResource) Read ¶
func (r *ChatCompletionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ChatCompletionResource) Schema ¶
func (r *ChatCompletionResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ChatCompletionResource) Update ¶
func (r *ChatCompletionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ChatCompletionResourceModel ¶
type ChatCompletionResourceModel struct { Choices []tfTypes.Choices `tfsdk:"choices"` Created types.Int64 `tfsdk:"created"` FrequencyPenalty types.Number `tfsdk:"frequency_penalty"` FunctionCall *tfTypes.CreateChatCompletionRequestFunctionCall `tfsdk:"function_call"` Functions []tfTypes.ChatCompletionFunctions `tfsdk:"functions"` ID types.String `tfsdk:"id"` LogitBias map[string]types.Int64 `tfsdk:"logit_bias"` MaxTokens types.Int64 `tfsdk:"max_tokens"` Messages []tfTypes.ChatCompletionRequestMessage `tfsdk:"messages"` Model types.String `tfsdk:"model"` N types.Int64 `tfsdk:"n"` Object types.String `tfsdk:"object"` PresencePenalty types.Number `tfsdk:"presence_penalty"` Stop *tfTypes.Stop `tfsdk:"stop"` Stream types.Bool `tfsdk:"stream"` Temperature types.Number `tfsdk:"temperature"` TopP types.Number `tfsdk:"top_p"` Usage *tfTypes.Usage `tfsdk:"usage"` User types.String `tfsdk:"user"` }
ChatCompletionResourceModel describes the resource data model.
func (*ChatCompletionResourceModel) RefreshFromSharedCreateChatCompletionResponse ¶
func (r *ChatCompletionResourceModel) RefreshFromSharedCreateChatCompletionResponse(resp *shared.CreateChatCompletionResponse)
func (*ChatCompletionResourceModel) ToSharedCreateChatCompletionRequest ¶
func (r *ChatCompletionResourceModel) ToSharedCreateChatCompletionRequest() *shared.CreateChatCompletionRequest
type CompletionResource ¶
type CompletionResource struct {
// contains filtered or unexported fields
}
CompletionResource defines the resource implementation.
func (*CompletionResource) Configure ¶
func (r *CompletionResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*CompletionResource) Create ¶
func (r *CompletionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*CompletionResource) Delete ¶
func (r *CompletionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*CompletionResource) ImportState ¶
func (r *CompletionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*CompletionResource) Metadata ¶
func (r *CompletionResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*CompletionResource) Read ¶
func (r *CompletionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*CompletionResource) Schema ¶
func (r *CompletionResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*CompletionResource) Update ¶
func (r *CompletionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type CompletionResourceModel ¶
type CompletionResourceModel struct { BestOf types.Int64 `tfsdk:"best_of"` Choices []tfTypes.CreateCompletionResponseChoices `tfsdk:"choices"` Created types.Int64 `tfsdk:"created"` Echo types.Bool `tfsdk:"echo"` FrequencyPenalty types.Number `tfsdk:"frequency_penalty"` ID types.String `tfsdk:"id"` LogitBias map[string]types.Int64 `tfsdk:"logit_bias"` Logprobs types.Int64 `tfsdk:"logprobs"` MaxTokens types.Int64 `tfsdk:"max_tokens"` Model types.String `tfsdk:"model"` N types.Int64 `tfsdk:"n"` Object types.String `tfsdk:"object"` PresencePenalty types.Number `tfsdk:"presence_penalty"` Prompt *tfTypes.Prompt `tfsdk:"prompt"` Stop *tfTypes.Stop `tfsdk:"stop"` Stream types.Bool `tfsdk:"stream"` Suffix types.String `tfsdk:"suffix"` Temperature types.Number `tfsdk:"temperature"` TopP types.Number `tfsdk:"top_p"` Usage *tfTypes.Usage `tfsdk:"usage"` User types.String `tfsdk:"user"` }
CompletionResourceModel describes the resource data model.
func (*CompletionResourceModel) RefreshFromSharedCreateCompletionResponse ¶
func (r *CompletionResourceModel) RefreshFromSharedCreateCompletionResponse(resp *shared.CreateCompletionResponse)
func (*CompletionResourceModel) ToSharedCreateCompletionRequest ¶
func (r *CompletionResourceModel) ToSharedCreateCompletionRequest() *shared.CreateCompletionRequest
type EmbeddingResource ¶
type EmbeddingResource struct {
// contains filtered or unexported fields
}
EmbeddingResource defines the resource implementation.
func (*EmbeddingResource) Configure ¶
func (r *EmbeddingResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*EmbeddingResource) Create ¶
func (r *EmbeddingResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*EmbeddingResource) Delete ¶
func (r *EmbeddingResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*EmbeddingResource) ImportState ¶
func (r *EmbeddingResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*EmbeddingResource) Metadata ¶
func (r *EmbeddingResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*EmbeddingResource) Read ¶
func (r *EmbeddingResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*EmbeddingResource) Schema ¶
func (r *EmbeddingResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*EmbeddingResource) Update ¶
func (r *EmbeddingResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type EmbeddingResourceModel ¶
type EmbeddingResourceModel struct { Data []tfTypes.Data `tfsdk:"data"` Input tfTypes.Prompt `tfsdk:"input"` Model types.String `tfsdk:"model"` Object types.String `tfsdk:"object"` Usage tfTypes.CreateEmbeddingResponseUsage `tfsdk:"usage"` User types.String `tfsdk:"user"` }
EmbeddingResourceModel describes the resource data model.
func (*EmbeddingResourceModel) RefreshFromSharedCreateEmbeddingResponse ¶
func (r *EmbeddingResourceModel) RefreshFromSharedCreateEmbeddingResponse(resp *shared.CreateEmbeddingResponse)
func (*EmbeddingResourceModel) ToSharedCreateEmbeddingRequest ¶
func (r *EmbeddingResourceModel) ToSharedCreateEmbeddingRequest() *shared.CreateEmbeddingRequest
type ImageResource ¶
type ImageResource struct {
// contains filtered or unexported fields
}
ImageResource defines the resource implementation.
func (*ImageResource) Configure ¶
func (r *ImageResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ImageResource) Create ¶
func (r *ImageResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ImageResource) Delete ¶
func (r *ImageResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ImageResource) ImportState ¶
func (r *ImageResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ImageResource) Metadata ¶
func (r *ImageResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ImageResource) Read ¶
func (r *ImageResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ImageResource) Schema ¶
func (r *ImageResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ImageResource) Update ¶
func (r *ImageResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ImageResourceModel ¶
type ImageResourceModel struct { Created types.Int64 `tfsdk:"created"` Data []tfTypes.ImagesResponseData `tfsdk:"data"` N types.Int64 `tfsdk:"n"` Prompt types.String `tfsdk:"prompt"` ResponseFormat types.String `tfsdk:"response_format"` Size types.String `tfsdk:"size"` User types.String `tfsdk:"user"` }
ImageResourceModel describes the resource data model.
func (*ImageResourceModel) RefreshFromSharedImagesResponse ¶
func (r *ImageResourceModel) RefreshFromSharedImagesResponse(resp *shared.ImagesResponse)
func (*ImageResourceModel) ToSharedCreateImageRequest ¶
func (r *ImageResourceModel) ToSharedCreateImageRequest() *shared.CreateImageRequest
type OpenaiProvider ¶
type OpenaiProvider struct {
// contains filtered or unexported fields
}
func (*OpenaiProvider) Configure ¶
func (p *OpenaiProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*OpenaiProvider) DataSources ¶
func (p *OpenaiProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*OpenaiProvider) Metadata ¶
func (p *OpenaiProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*OpenaiProvider) Resources ¶
func (p *OpenaiProvider) Resources(ctx context.Context) []func() resource.Resource
func (*OpenaiProvider) Schema ¶
func (p *OpenaiProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package reflect is a forked version of https://github.com/hashicorp/terraform-plugin-framework/tree/main/internal/reflect that has been modified to support speakeasy's terraform generator.
|
Package reflect is a forked version of https://github.com/hashicorp/terraform-plugin-framework/tree/main/internal/reflect that has been modified to support speakeasy's terraform generator. |
Click to show internal directories.
Click to hide internal directories.