From 251246ecf9f76a106a182c8093624e313d4acae6 Mon Sep 17 00:00:00 2001 From: chuang8511 Date: Tue, 29 Oct 2024 10:51:28 +0000 Subject: [PATCH] chore: rename instill to instillmodel --- pkg/component/ai/{instill => instillmodel}/v0/README.mdx | 0 .../ai/{instill => instillmodel}/v0/assets/instill-model.svg | 0 pkg/component/ai/{instill => instillmodel}/v0/client.go | 2 +- .../ai/{instill => instillmodel}/v0/config/definition.json | 0 .../ai/{instill => instillmodel}/v0/config/tasks.json | 0 pkg/component/ai/{instill => instillmodel}/v0/main.go | 2 +- pkg/component/ai/{instill => instillmodel}/v0/main_test.go | 2 +- pkg/component/ai/{instill => instillmodel}/v0/trigger.go | 2 +- pkg/component/store/store.go | 4 ++-- 9 files changed, 6 insertions(+), 6 deletions(-) rename pkg/component/ai/{instill => instillmodel}/v0/README.mdx (100%) rename pkg/component/ai/{instill => instillmodel}/v0/assets/instill-model.svg (100%) rename pkg/component/ai/{instill => instillmodel}/v0/client.go (98%) rename pkg/component/ai/{instill => instillmodel}/v0/config/definition.json (100%) rename pkg/component/ai/{instill => instillmodel}/v0/config/tasks.json (100%) rename pkg/component/ai/{instill => instillmodel}/v0/main.go (99%) rename pkg/component/ai/{instill => instillmodel}/v0/main_test.go (99%) rename pkg/component/ai/{instill => instillmodel}/v0/trigger.go (98%) diff --git a/pkg/component/ai/instill/v0/README.mdx b/pkg/component/ai/instillmodel/v0/README.mdx similarity index 100% rename from pkg/component/ai/instill/v0/README.mdx rename to pkg/component/ai/instillmodel/v0/README.mdx diff --git a/pkg/component/ai/instill/v0/assets/instill-model.svg b/pkg/component/ai/instillmodel/v0/assets/instill-model.svg similarity index 100% rename from pkg/component/ai/instill/v0/assets/instill-model.svg rename to pkg/component/ai/instillmodel/v0/assets/instill-model.svg diff --git a/pkg/component/ai/instill/v0/client.go b/pkg/component/ai/instillmodel/v0/client.go similarity index 98% rename from pkg/component/ai/instill/v0/client.go rename to pkg/component/ai/instillmodel/v0/client.go index 69da1eed1..10897035d 100644 --- a/pkg/component/ai/instill/v0/client.go +++ b/pkg/component/ai/instillmodel/v0/client.go @@ -1,4 +1,4 @@ -package instill +package instillmodel import ( "crypto/tls" diff --git a/pkg/component/ai/instill/v0/config/definition.json b/pkg/component/ai/instillmodel/v0/config/definition.json similarity index 100% rename from pkg/component/ai/instill/v0/config/definition.json rename to pkg/component/ai/instillmodel/v0/config/definition.json diff --git a/pkg/component/ai/instill/v0/config/tasks.json b/pkg/component/ai/instillmodel/v0/config/tasks.json similarity index 100% rename from pkg/component/ai/instill/v0/config/tasks.json rename to pkg/component/ai/instillmodel/v0/config/tasks.json diff --git a/pkg/component/ai/instill/v0/main.go b/pkg/component/ai/instillmodel/v0/main.go similarity index 99% rename from pkg/component/ai/instill/v0/main.go rename to pkg/component/ai/instillmodel/v0/main.go index d6a1ba81b..b6e572d9c 100644 --- a/pkg/component/ai/instill/v0/main.go +++ b/pkg/component/ai/instillmodel/v0/main.go @@ -1,5 +1,5 @@ //go:generate compogen readme ./config ./README.mdx -package instill +package instillmodel import ( "context" diff --git a/pkg/component/ai/instill/v0/main_test.go b/pkg/component/ai/instillmodel/v0/main_test.go similarity index 99% rename from pkg/component/ai/instill/v0/main_test.go rename to pkg/component/ai/instillmodel/v0/main_test.go index 0d603ca13..1a48a06f2 100644 --- a/pkg/component/ai/instill/v0/main_test.go +++ b/pkg/component/ai/instillmodel/v0/main_test.go @@ -1,4 +1,4 @@ -package instill +package instillmodel import ( "context" diff --git a/pkg/component/ai/instill/v0/trigger.go b/pkg/component/ai/instillmodel/v0/trigger.go similarity index 98% rename from pkg/component/ai/instill/v0/trigger.go rename to pkg/component/ai/instillmodel/v0/trigger.go index 86524d90a..3cb5957bf 100644 --- a/pkg/component/ai/instill/v0/trigger.go +++ b/pkg/component/ai/instillmodel/v0/trigger.go @@ -1,4 +1,4 @@ -package instill +package instillmodel import ( "context" diff --git a/pkg/component/store/store.go b/pkg/component/store/store.go index a95fcf547..57c59cc1b 100644 --- a/pkg/component/store/store.go +++ b/pkg/component/store/store.go @@ -14,7 +14,7 @@ import ( "github.com/instill-ai/pipeline-backend/pkg/component/ai/fireworksai/v0" "github.com/instill-ai/pipeline-backend/pkg/component/ai/groq/v0" "github.com/instill-ai/pipeline-backend/pkg/component/ai/huggingface/v0" - "github.com/instill-ai/pipeline-backend/pkg/component/ai/instill/v0" + "github.com/instill-ai/pipeline-backend/pkg/component/ai/instillmodel/v0" "github.com/instill-ai/pipeline-backend/pkg/component/ai/mistralai/v0" "github.com/instill-ai/pipeline-backend/pkg/component/ai/ollama/v0" "github.com/instill-ai/pipeline-backend/pkg/component/ai/openai/v0" @@ -116,7 +116,7 @@ func Init( compStore.Import(conn) } - compStore.Import(instill.Init(baseComp)) + compStore.Import(instillmodel.Init(baseComp)) compStore.Import(huggingface.Init(baseComp)) {