Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(component): use YAML for all component definition files #947

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion pkg/component/ai/anthropic/v0/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ It can carry out the following tasks:

## Configuration

The component definition and tasks are defined in the [definition.json](https://github.com/instill-ai/pipeline-backend/blob/main/pkg/component/ai/anthropic/v0/config/definition.json) and [tasks.json](https://github.com/instill-ai/pipeline-backend/blob/main/pkg/component/ai/anthropic/v0/config/tasks.json) files respectively.
The component definition and tasks are defined in the [definition.yaml](https://github.com/instill-ai/pipeline-backend/blob/main/pkg/component/ai/anthropic/v0/config/definition.yaml) and [tasks.yaml](https://github.com/instill-ai/pipeline-backend/blob/main/pkg/component/ai/anthropic/v0/config/tasks.yaml) files respectively.



Expand Down
19 changes: 0 additions & 19 deletions pkg/component/ai/anthropic/v0/config/definition.json

This file was deleted.

16 changes: 16 additions & 0 deletions pkg/component/ai/anthropic/v0/config/definition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
availableTasks:
- TASK_TEXT_GENERATION_CHAT
custom: false
documentationUrl: https://www.instill.tech/docs/component/ai/anthropic
icon: assets/anthropic.svg
id: anthropic
public: true
title: Anthropic
description: Connect the AI models served on the Anthropic Platform.
type: COMPONENT_TYPE_AI
uid: 42bdb620-74ad-486a-82da-25e45431b42c
vendor: Anthropic
vendorAttributes: {}
version: 0.1.1
sourceUrl: https://github.com/instill-ai/pipeline-backend/blob/main/pkg/component/ai/anthropic/v0
releaseStage: RELEASE_STAGE_ALPHA
1 change: 0 additions & 1 deletion pkg/component/ai/anthropic/v0/config/setup.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"api-key": {
Expand Down
15 changes: 15 additions & 0 deletions pkg/component/ai/anthropic/v0/config/setup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
additionalProperties: false
properties:
api-key:
description: Fill in your Anthropic API key. To find your keys, visit the Anthropic
console page.
acceptFormats:
- string
instillSecret: true
instillCredential: true
uiOrder: 0
title: API Key
format: string
required: []
title: Anthropic Connection
format: object
245 changes: 0 additions & 245 deletions pkg/component/ai/anthropic/v0/config/tasks.json

This file was deleted.

Loading
Loading