From dacaef1c6e87f18f095d08aa08285b41955b493a Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Thu, 2 May 2024 13:18:05 +0100 Subject: [PATCH 1/9] feat: new templates --- src/lib/stores/marketplace.ts | 109 +++++++++++++++++++++++++++++++--- 1 file changed, 100 insertions(+), 9 deletions(-) diff --git a/src/lib/stores/marketplace.ts b/src/lib/stores/marketplace.ts index cf6f9ecc5..887d1bd72 100644 --- a/src/lib/stores/marketplace.ts +++ b/src/lib/stores/marketplace.ts @@ -958,7 +958,7 @@ export const marketplace: MarketplaceTemplate[] = [ ] }, { - icon: 'icon-chip', + icon: 'icon-chat', id: 'text-generation-with-huggingface', name: 'Text generation', tagline: 'Generate text using the Hugging Face inference API.', @@ -991,7 +991,7 @@ export const marketplace: MarketplaceTemplate[] = [ ] }, { - icon: 'icon-chip', + icon: 'icon-translate', id: 'language-translation-with-huggingface', name: 'Language translation', tagline: 'Translate text using the Hugging Face inference API.', @@ -1024,7 +1024,7 @@ export const marketplace: MarketplaceTemplate[] = [ ] }, { - icon: 'icon-chip', + icon: 'icon-eye', id: 'image-classification-with-huggingface', name: 'Image classification', tagline: 'Classify images using the Hugging Face inference API.', @@ -1097,7 +1097,7 @@ export const marketplace: MarketplaceTemplate[] = [ ] }, { - icon: 'icon-chip', + icon: 'icon-eye', id: 'object-detection-with-huggingface', name: 'Object detection', tagline: 'Detect objects in images using the Hugging Face inference API.', @@ -1170,7 +1170,7 @@ export const marketplace: MarketplaceTemplate[] = [ ] }, { - icon: 'icon-chip', + icon: 'icon-text', id: 'speech-recognition-with-huggingface', name: 'Speech recognition', tagline: 'Transcribe audio to text using the Hugging Face inference API.', @@ -1243,7 +1243,7 @@ export const marketplace: MarketplaceTemplate[] = [ ] }, { - icon: 'icon-chip', + icon: 'icon-chat', id: 'text-to-speech-with-huggingface', name: 'Text to speech', tagline: 'Convert text to speech using the Hugging Face inference API.', @@ -1350,7 +1350,7 @@ export const marketplace: MarketplaceTemplate[] = [ ] }, { - icon: 'icon-chip', + icon: 'icon-chat-alt-2', id: 'chat-with-perplexity-ai', name: 'Chat with Perplexity AI', tagline: 'Create a chatbot using the Perplexity AI API.', @@ -1424,7 +1424,7 @@ export const marketplace: MarketplaceTemplate[] = [ ] }, { - icon: 'icon-chip', + icon: 'icon-document-search', id: 'sync-with-pinecone', name: 'Sync with Pinecone', tagline: "Sync your Appwrite database with Pinecone's vector database.", @@ -1580,7 +1580,7 @@ export const marketplace: MarketplaceTemplate[] = [ ] }, { - icon: 'icon-chip', + icon: 'icon-chat', id: 'speak-with-elevenlabs', name: 'Speak with ElevenLabs', tagline: 'Convert text to speech using the ElevenLabs API.', @@ -1648,6 +1648,97 @@ export const marketplace: MarketplaceTemplate[] = [ type: 'text' } ] + }, + { + icon: 'icon-music-note', + id: 'music-generation-with-huggingface', + name: 'Music generation', + tagline: 'Generate music from a text prompt using the Hugging Face inference API.', + permissions: ['any'], + events: [], + cron: '', + timeout: 15, + usecases: ['AI'], + runtimes: [ + ...getRuntimes( + TemplateRuntimes.NODE, + 'npm install && npm run setup', + 'src/main.js', + 'node/music-generation-with-huggingface' + ) + ], + instructions: `For documentation and instructions check out file.`, + vcsProvider: 'github', + providerRepositoryId: 'templates', + providerOwner: 'appwrite', + providerBranch: 'main', + variables: [ + { + 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 generated music is stored. Learn more.`, + value: 'generated_music', + placeholder: 'generated_music', + required: false, + type: 'text' + }, + { + name: 'HUGGINGFACE_ACCESS_TOKEN', + description: `Secret for sending requests to the Hugging Face API. Learn more.`, + placeholder: 'hf_MUvn...', + required: true, + type: 'password' + } + ] + }, + { + icon: 'icon-chip', + id: 'generate-with-fal-ai', + name: 'Generate with fal.ai', + tagline: "Generate images using fal.ai's API.", + permissions: ['any'], + events: [], + cron: '', + timeout: 300, + usecases: ['AI'], + runtimes: [ + ...getRuntimes( + TemplateRuntimes.NODE, + 'npm install', + 'src/main.js', + 'node/generate-with-fal-ai' + ) + ], + instructions: `For documentation and instructions check out file.`, + vcsProvider: 'github', + providerRepositoryId: 'templates', + providerOwner: 'appwrite', + providerBranch: 'main', + variables: [ + { + name: 'FAL_API_KEY', + description: `A unique key used to authenticate with the fal.ai API. Learn more.`, + value: '', + placeholder: 'd1efb...aec35', + required: true, + type: 'password' + } + ] } ]; From 8a9f4a8b7ac4d877f2301e93af17743bf69749c8 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 3 May 2024 13:52:09 +0900 Subject: [PATCH 2/9] Add LMNT Demo --- 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..457e195a4 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: 'speak-with-lmnt', + name: 'Speak with LMNT', + tagline: 'Convert text to speech using the LMNT API.', + permissions: ['any'], + cron: '', + events: [], + timeout: 15, + usecases: ['AI'], + runtimes: [ + ...getRuntimes( + TemplateRuntimes.NODE, + 'npm install', + 'src/main.js', + 'node/speak-with-lmnt' + ) + ], + instructions: `For documentation and instructions check out file.`, + vcsProvider: 'github', + providerRepositoryId: 'templates', + providerOwner: 'appwrite', + providerBranch: 'main', + variables: [ + { + name: 'LMNT_API_KEY', + description: `A unique key used to authenticate with the LMNT 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 cad298d64f588a784291c57d4cba7b900004198e Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 3 May 2024 13:58:05 +0900 Subject: [PATCH 3/9] Update marketplace.ts --- src/lib/stores/marketplace.ts | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/lib/stores/marketplace.ts b/src/lib/stores/marketplace.ts index cf6f9ecc5..dd0908b58 100644 --- a/src/lib/stores/marketplace.ts +++ b/src/lib/stores/marketplace.ts @@ -1349,6 +1349,40 @@ export const marketplace: MarketplaceTemplate[] = [ } ] }, + { + icon: 'icon-chip', + id: 'generate-with-together-ai', + name: 'Generate with Together AI', + tagline: "Generate text and images using Togther AI's API.", + permissions: ['any'], + events: [], + cron: '', + timeout: 300, + usecases: ['AI'], + runtimes: [ + ...getRuntimes( + TemplateRuntimes.NODE, + 'npm install', + 'src/main.js', + 'node/generate-with-together-ai' + ) + ], + instructions: `For documentation and instructions check out file.`, + vcsProvider: 'github', + providerRepositoryId: 'templates', + providerOwner: 'appwrite', + providerBranch: 'main', + variables: [ + { + name: 'TOGETHER_API_KEY', + description: `A unique key used to authenticate with the Together AI API. Learn more.`, + value: '', + placeholder: 'd1efb...aec35', + required: true, + type: 'password' + } + ] + }, { icon: 'icon-chip', id: 'chat-with-perplexity-ai', From 520ce889e788ae6026d9e3c65b1c7674a8edd00d Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 3 May 2024 13:58:38 +0900 Subject: [PATCH 4/9] Update marketplace.ts --- src/lib/stores/marketplace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/stores/marketplace.ts b/src/lib/stores/marketplace.ts index dd0908b58..32b0ebbff 100644 --- a/src/lib/stores/marketplace.ts +++ b/src/lib/stores/marketplace.ts @@ -1353,7 +1353,7 @@ export const marketplace: MarketplaceTemplate[] = [ icon: 'icon-chip', id: 'generate-with-together-ai', name: 'Generate with Together AI', - tagline: "Generate text and images using Togther AI's API.", + tagline: "Generate text and images using Together AI's API.", permissions: ['any'], events: [], cron: '', From a12de7f60f003cf67869f9f228427a4851b10cb8 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 3 May 2024 16:33:28 +0900 Subject: [PATCH 5/9] 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 457e195a4..b08be5c3c 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 0e4ca9fbb015d80f541b2c5181dffaf2a12df1ca Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Fri, 3 May 2024 16:39:59 +0900 Subject: [PATCH 6/9] Update marketplace.ts --- src/lib/stores/marketplace.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/lib/stores/marketplace.ts b/src/lib/stores/marketplace.ts index 32b0ebbff..581da5d26 100644 --- a/src/lib/stores/marketplace.ts +++ b/src/lib/stores/marketplace.ts @@ -1380,6 +1380,29 @@ export const marketplace: MarketplaceTemplate[] = [ placeholder: 'd1efb...aec35', 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 2d37349488f2a89cb7469cd899d77752098651cb Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Fri, 3 May 2024 11:38:04 +0100 Subject: [PATCH 7/9] chore: remove comment --- src/lib/stores/marketplace.ts | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/lib/stores/marketplace.ts b/src/lib/stores/marketplace.ts index 03b7b9e84..19f590a16 100644 --- a/src/lib/stores/marketplace.ts +++ b/src/lib/stores/marketplace.ts @@ -1889,38 +1889,3 @@ export type MarketplaceTemplate = { providerBranch: string; variables: Variable[]; }; - -/* -Template: - { - "icon": "algolia", - "id": "sync-with-algolia", - "name": "Sync with Algolia", - "tagline": "Search your Appwrite Database with Algolia.", - "permissions": ["any"], - "events": [ "users.*.create" ], - "cron": "0 * * * *", - "timeout": 15, - "runtimes": [ - { - "name": "node-18", - "entrypoint": "src/main.js", - "commands": "npm install" - } - ], - "instructions": "# Some markdown stuff", - "vcsProvider": "github", - "vcsRepositoryName": "templates-for-node", - "vcsOwnerName": "loks0n", - "vcsRootDirectory": "sync-with-algolia", - "variables": [ - { - "name": "ALGOLIA_API_KEY", - "description": "Algolia read-write API key.", - "value": "", - "placeholder": "sk_1df...h9jef", - "required": true - } - ] - } -*/ From 634e7a1dab956bea9c60b17b8ffd3b435b08b61e Mon Sep 17 00:00:00 2001 From: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com> Date: Fri, 3 May 2024 11:39:30 -0700 Subject: [PATCH 8/9] fix(messaging): fix provider link in settings --- .../providers/provider-[provider]/updateSettings.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/console/project-[project]/messaging/providers/provider-[provider]/updateSettings.svelte b/src/routes/console/project-[project]/messaging/providers/provider-[provider]/updateSettings.svelte index 756737028..4af90877f 100644 --- a/src/routes/console/project-[project]/messaging/providers/provider-[provider]/updateSettings.svelte +++ b/src/routes/console/project-[project]/messaging/providers/provider-[provider]/updateSettings.svelte @@ -224,7 +224,7 @@

Configure the settings to to send {message}, or to complete the From fe8c3dbb14b4d224a4042f323e846142213bcbdb Mon Sep 17 00:00:00 2001 From: Elad Shechter Date: Tue, 7 May 2024 10:56:52 +0200 Subject: [PATCH 9/9] Update style x button size (reviewed with Chen) --- src/lib/components/alert.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/src/lib/components/alert.svelte b/src/lib/components/alert.svelte index c553d6042..20998db9d 100644 --- a/src/lib/components/alert.svelte +++ b/src/lib/components/alert.svelte @@ -27,7 +27,6 @@