From 4d2a0d8940f219b757ec4912bfafcf997aa6e3aa Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Thu, 2 May 2024 16:34:15 +0900 Subject: [PATCH 1/4] Add AnyScale integration --- src/lib/stores/marketplace.ts | 70 +++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/src/lib/stores/marketplace.ts b/src/lib/stores/marketplace.ts index cf6f9ecc5..ee8e5a2c1 100644 --- a/src/lib/stores/marketplace.ts +++ b/src/lib/stores/marketplace.ts @@ -1648,6 +1648,76 @@ export const marketplace: MarketplaceTemplate[] = [ type: 'text' } ] + }, + { + icon: 'icon-chip', + id: 'chat-with-anyscale', + name: 'Chat with AnyScale', + tagline: 'Create a chatbot using the AnyScale API.', + permissions: ['any'], + cron: '', + events: [], + timeout: 15, + usecases: ['AI'], + runtimes: [ + ...getRuntimes( + TemplateRuntimes.NODE, + 'npm install', + 'src/main.js', + 'node/chat-with-anyscale' + ) + ], + instructions: `For documentation and instructions check out file.`, + vcsProvider: 'github', + providerRepositoryId: 'templates', + providerOwner: 'appwrite', + providerBranch: 'main', + variables: [ + { + name: 'ANYSCALE_API_KEY', + description: `A unique key used to authenticate with the AnyScale API. Learn more.`, + placeholder: 'd03xxxxxxxx26', + required: true, + type: 'password' + }, + { + name: 'APPWRITE_API_KEY', + description: `The API Key to authenticate against Appwrite's server APIs. Learn more.`, + value: '', + placeholder: 'd1efb...aec35', + required: true, + type: 'password' + }, + { + name: 'APPWRITE_ENDPOINT', + description: `The URL endpoint of the Appwrite server. Learn more.`, + value: 'https://cloud.appwrite.io/v1', + placeholder: 'https://cloud.appwrite.io/v1', + required: false, + type: 'url' + }, + { + name: 'APPWRITE_DATABASE_ID', + description: `The ID of the database where the responses are stored. Learn more.`, + placeholder: 'my-database', + required: true, + type: 'text' + }, + { + name: 'APPWRITE_COLLECTION_ID', + description: `The ID of the collection where the responses are stored. Learn more.`, + placeholder: 'my-collection', + required: true, + type: 'text' + }, + { + name: 'APPWRITE_BUCKET_ID', + description: `The ID of the bucket where audio is stored. Learn more.`, + placeholder: 'generated_speech', + required: true, + type: 'text' + } + ] } ]; From 5c38d99386f23156b21c98e17f9802631962bd5f Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 3 May 2024 16:41:15 +0900 Subject: [PATCH 2/4] Update marketplace.ts --- src/lib/stores/marketplace.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/lib/stores/marketplace.ts b/src/lib/stores/marketplace.ts index ee8e5a2c1..c58dbb7c4 100644 --- a/src/lib/stores/marketplace.ts +++ b/src/lib/stores/marketplace.ts @@ -1696,20 +1696,6 @@ export const marketplace: MarketplaceTemplate[] = [ required: false, type: 'url' }, - { - name: 'APPWRITE_DATABASE_ID', - description: `The ID of the database where the responses are stored. Learn more.`, - placeholder: 'my-database', - required: true, - type: 'text' - }, - { - name: 'APPWRITE_COLLECTION_ID', - description: `The ID of the collection where the responses are stored. Learn more.`, - placeholder: 'my-collection', - required: true, - type: 'text' - }, { name: 'APPWRITE_BUCKET_ID', description: `The ID of the bucket where audio is stored. Learn more.`, From 0030a2ea974d9ca13bc0eb34b4c0417e6c1dec41 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 3 May 2024 18:19:12 +0900 Subject: [PATCH 3/4] Update marketplace.ts --- src/lib/stores/marketplace.ts | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/lib/stores/marketplace.ts b/src/lib/stores/marketplace.ts index c58dbb7c4..08d4cb085 100644 --- a/src/lib/stores/marketplace.ts +++ b/src/lib/stores/marketplace.ts @@ -1679,29 +1679,6 @@ export const marketplace: MarketplaceTemplate[] = [ placeholder: 'd03xxxxxxxx26', required: true, type: 'password' - }, - { - name: 'APPWRITE_API_KEY', - description: `The API Key to authenticate against Appwrite's server APIs. Learn more.`, - value: '', - placeholder: 'd1efb...aec35', - required: true, - type: 'password' - }, - { - name: 'APPWRITE_ENDPOINT', - description: `The URL endpoint of the Appwrite server. Learn more.`, - value: 'https://cloud.appwrite.io/v1', - placeholder: 'https://cloud.appwrite.io/v1', - required: false, - type: 'url' - }, - { - name: 'APPWRITE_BUCKET_ID', - description: `The ID of the bucket where audio is stored. Learn more.`, - placeholder: 'generated_speech', - required: true, - type: 'text' } ] } From a0046152ae485bef2e9fbb0ef3a93af7f9e9a2c4 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 13 May 2024 17:41:24 +0900 Subject: [PATCH 4/4] Add missing environment variable --- src/lib/stores/marketplace.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/stores/marketplace.ts b/src/lib/stores/marketplace.ts index 08d4cb085..0a115b81f 100644 --- a/src/lib/stores/marketplace.ts +++ b/src/lib/stores/marketplace.ts @@ -1679,6 +1679,13 @@ export const marketplace: MarketplaceTemplate[] = [ placeholder: 'd03xxxxxxxx26', required: true, type: 'password' + }, + { + name: 'ANYSCALE_MAX_TOKENS', + description: `The maximum number of tokens that Anyscale responses should contain. Learn more.`, + placeholder: '', + required: false, + type: 'number' } ] }