Toolverse
All skills

ai-model-web

by TencentCloudBase

Use this skill when developing browser/Web applications (React/Vue/Angular, static websites, SPAs) that need AI capabilities. Features text generation (generateText) and streaming (streamText) via @cloudbase/js-sdk. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Data Science
Views
3

About this skill

Use this skill when developing browser/Web applications (React/Vue/Angular, static websites, SPAs) that need AI capabilities. Features text generation (generateText) and streaming (streamText) via @cloudbase/js-sdk. Built-in models include Hunyuan (hunyuan-2.0-instruct-20251111 recommended) and DeepSeek (deepseek-v3.2 recommended). NOT for Node.js backend (use ai-model-nodejs), WeChat Mini Program (use ai-model-wechat), or image generation (Node SDK only).

How to use

  1. Zainstaluj bibliotekę @cloudbase/js-sdk poleceniem npm install @cloudbase/js-sdk w swoim projekcie webowym.

  2. Zaimportuj cloudbase i zainicjalizuj aplikację, podając identyfikator środowiska (env) i klucz dostępu (accessKey) pobrany z konsoli CloudBase. Pamiętaj, aby inicjalizacja odbywała się synchronicznie na poziomie głównym modułu.

  3. Uwierzytelnij użytkownika anonimowo za pomocą metody signInAnonymously() — jest to wymagane przed użyciem funkcji AI.

  4. Uzyskaj dostęp do modułu AI przez app.ai() i wybierz model do użycia: dla ogólnych zadań rekomendowany jest hunyuan-2.0-instruct-20251111, dla bardziej zaawansowanych scenariuszy deepseek-v3.2.

  5. Użyj metody generateText() do jednorazowego generowania tekstu lub streamText() do streamowania odpowiedzi w czasie rzeczywistym, co zapewnia lepsze doświadczenie użytkownika w interfejsie.

  6. Pamiętaj, że skill jest przeznaczony wyłącznie dla aplikacji browserowych — do backendu Node.js, WeChat Mini Program lub generowania obrazów użyj odpowiednich alternatywnych skills.

Related skills

market-analysis

by xbklairith

Use when analyzing markets or interpreting charts - applies technical indicators (RSI, MACD, Moving Averages), identifies support/resistance, analyzes multi-timeframe trends, checks fundamentals and sentiment. Activates when user says \

Data Science
29144

excalidraw

by ryanquinn3

\

Data Science
124204

arxiv-search

by langchain-ai

Search arXiv preprint repository for papers in physics, mathematics, computer science, quantitative biology, and related fields

Data Science
76172

nano-banana-pro

by garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., \

Data Science
535772

deepwiki-rs

by sopaco

AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional

Data Science
18144

a-stock-analysis

by openclaw

A股实时行情与分时量能分析。获取沪深股票实时价格、涨跌、成交量,分析分时量能分布(早盘/尾盘放量)、主力动向(抢筹/出货信号)、涨停封单。支持持仓管理和盈亏分析。Use when: (1) 查询A股实时行情, (2) 分析主力资金动向, (3) 查看分时成交量分布, (4) 管理股票持仓, (5) 分析持仓盈亏。

Data Science
48153