From 6bc9ea59cd4147184adda5aaccf988dac18d9523 Mon Sep 17 00:00:00 2001 From: Anas Muhammed Date: Sun, 4 Aug 2024 23:03:31 +0400 Subject: [PATCH] fix: linting --- ...nt_ azure_openai_text.go => content_azure_openai_text.go} | 5 +++-- internal/microsoft/plugin.go | 4 ++-- tools/docgen/main.go | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) rename internal/microsoft/{content_ azure_openai_text.go => content_azure_openai_text.go} (99%) diff --git a/internal/microsoft/content_ azure_openai_text.go b/internal/microsoft/content_azure_openai_text.go similarity index 99% rename from internal/microsoft/content_ azure_openai_text.go rename to internal/microsoft/content_azure_openai_text.go index 261c8bd4..d4ea4e03 100644 --- a/internal/microsoft/content_ azure_openai_text.go +++ b/internal/microsoft/content_azure_openai_text.go @@ -10,12 +10,13 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/ai/azopenai" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Masterminds/sprig/v3" + "github.com/hashicorp/hcl/v2" + "github.com/zclconf/go-cty/cty" + "github.com/blackstork-io/fabric/pkg/diagnostics" "github.com/blackstork-io/fabric/plugin" "github.com/blackstork-io/fabric/plugin/dataspec" "github.com/blackstork-io/fabric/plugin/dataspec/constraint" - "github.com/hashicorp/hcl/v2" - "github.com/zclconf/go-cty/cty" ) func makeAzureOpenAITextContentSchema(loader AzureOpenAIClientLoadFn) *plugin.ContentProvider { diff --git a/internal/microsoft/plugin.go b/internal/microsoft/plugin.go index 5e010a53..1c302e0e 100644 --- a/internal/microsoft/plugin.go +++ b/internal/microsoft/plugin.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/zclconf/go-cty/cty" - "github.com/Azure/azure-sdk-for-go/sdk/ai/azopenai" "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/zclconf/go-cty/cty" + "github.com/blackstork-io/fabric/internal/microsoft/client" "github.com/blackstork-io/fabric/plugin" ) diff --git a/tools/docgen/main.go b/tools/docgen/main.go index 4d4ce66d..adc34cdf 100644 --- a/tools/docgen/main.go +++ b/tools/docgen/main.go @@ -310,7 +310,7 @@ func main() { stixview.Plugin(version), nistnvd.Plugin(version, nil), snyk.Plugin(version, nil), - microsoft.Plugin(version, nil), + microsoft.Plugin(version, nil, nil), } // generate markdown for each plugin for _, p := range plugins {