MyShell 백서

MyShell

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 18쪽

. `$id` is the series number and `$weight` is the lora weight you want (always set to 1.0). You can use multiple loras.</td><td></td><td>true</td></tr><tr><td>negative_prompt</td><td><code>string</code></td><td>The negative prompt for ControlNet.</td><td>(worst quality, low quality:1.4),(malformed hands:1.4),(poorly drawn hands:1.4),(mutated fingers:1.4),(extra limbs:1.35),(poorly drawn face:1.4),bad leg,strange leg, poor eyes, full screen of face</td><td>true</td></tr><tr><td>controlnet_module</td><td><code>string</code></td><td>The ControNet module</td><td>none</td><td>true</td></tr><tr><td>guidance_start</td><td><code>number</code></td><td>ControlNet guidance start</td><td>0</td><td>true</td></tr><tr><td>guidance_end</td><td><code>number</code></td><td>ControlNet guidance end</td><td>1</td><td>true</td></tr><tr><td>control_mode</td><td><code>string</code></td><td>The improved guess mode</td><td>Balanced</td><td>true</td></tr><tr><td>weight</td><td><code>number</code></td><td>The weight of the controlnet model</td><td>1</td><td>true</td></tr><tr><td>resize_mode</td><td><code>string</code></td><td>Four modes for output shape calculation: (1) Keep: keep original shape, (2) Certain: based on input width/length (divisible by 32), (3,4) min/max ratio: keep aspect ratio, the resize factor is the min/max of (h/H, w/W).</td><td>certain</td><td>true</td></tr><tr><td>threshold_a</td><td><code>integer</code></td><td>The threshold A for controlnet model</td><td>64</td><td>true</td></tr><tr><td>threshold_b</td><td><code>integer</code></td><td>The threshold B for controlnet model</td><td>64</td><td>true</td></tr><tr><td>steps</td><td><code>integer</code></td><td>Steps for sampler to step whle sampling</td><td>25</td><td>true</td></tr><tr><td>cfg_scale</td><td><code>number</code></td><td>Classifier Free Guidance Scale - how strongly the image should conform to prompt - lower values produce more creative results. Default to 7.</td><td>7.0</td><td>true</td></tr><tr><td>sampler</td><td><code>string</code></td><td>Sampler for diffusion model inference</td><td>DPM++ 2M</td><td>true</td></tr><tr><td>height</td><td><code>integer</code></td><td>Height of the generated images</td><td>512</td><td>true</td></tr><tr><td>width</td><td><code>integer</code></td><td>Width of the generated images</td><td>512</td><td>true</td></tr><tr><td>seed</td><td><code>integer</code></td><td>Random seed for generation process. -1 means random seed</td><td>-1</td><td>false</td></tr><tr><td>clip_skip</td><td><code>integer</code></td><td>Early stopping parameter for CLIP model; 1 is stop at last layer as usual, 2 is stop at penultimate layer, etc.</td><td>1</td><td>true</td></tr><tr><td>mask_blur</td><td><code>integer</code></td><td>Mask blur refers to the feathering of a mask (from edges to inside the mask), adjusted between 0-64. A smaller value results in sharper edges. Default to 4</td><td>4</td><td>true</td></tr><tr><td>inpainting_fill</td><td><code>integer</code></td><td>Choose the fill content in mask: 0 - fill, 1 - original, 2 - latent noise, 3 - latent nothing</td><td>1</td><td>true</td></tr><tr><td>inpainting_mask_invert</td><td><code>integer</code></td><td>0 - Inpaint masked region, 1 - Inpaint not masked region</td><td>0</td><td>true</td></tr><tr><td>denoising_strength</td><td><code>number</code></td><td>Strength of image transfomation during inpainting precess. High means more influence during transformation</td><td>0.7</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | -------- | ------------------------------------------------------------------------------------------------------------ | --------- | | url | `string` | The url of generated image, stored in the cloud. Only temporarily effective, will be cleared in a few hours. | `image` | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "url": "https://image.myshell.ai/image/chat/embed_obj/7758545/202405221652/f9550811186e4152952020ea097375d6.jpg" } ``` {% endcode %} {% endtab %} {% endtabs %} # Crawler A naive crawler for website. Return raw content in markdwon format. ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1781991963803181056) to try this widget and copy the Pro Config template. ## Usage Given the target website url, return the markdown string of the content **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>url</td><td><code>string</code></td><td>The target website url</td><td></td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---------------- | -------- | ---------------------------- | --------- | | markdown\_string | `string` | The raw content of given url | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "markdown_string": "Title: MyShell - An Ultimate Place for AI Apps Creation, Discover, and Earn\n\nURL Source: https://app.myshell.ai/explore\n\nMarkdown Content:\nExplore\n-------\n" } ``` {% endcode %} {% endtab %} {% endtabs %} # Crypto News Obtain ticker and general crypto news {% hint style="info" %} This widget supports multiple actions. For a more comprehensive understanding of its functionality, we recommend reviewing the following documentation carefully. You need to pass both the `action` and other input parameters of the chosen action to your `module_config` {% endhint %} ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1784593708744855552) to try this widget and copy the Pro Config template. ## Usage ### Crypto Ticker News <mark style="color:green;">`action`</mark> `crypto_ticker_news` Use this endpoint to obtain news for one ticker/symbol. If you want to retrieve news for multiple tickers/symbols, separate them with a comma. **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform</td><td>crypto_tickers_news</td><td>true</td></tr><tr><td>tickers</td><td><code>string</code></td><td>The ticker symbol of the cryptocurrency to get news for. If you want to retrieve news for multiple tickers/symbols separate them with a comma</td><td>BTC</td><td>true</td></tr><tr><td>items</td><td><code>integer</code></td><td>The number of news items to return</td><td>3</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the Crypto News | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "date": "Sun, 28 Apr 2024 10:30:31 -0400", "image_url": "https://crypto.snapi.dev/images/v1/s/l/btc-due-for-ralliesjpgw1024-479657.jpg", "news_url": "https://dailyhodl.com/2024/04/28/bitcoin-whale-aggressively-accumulates-282380000-worth-of-btc-during-correction-on-chain-data/", "sentiment": "Positive", "source_name": "The Daily Hodl", "text": "A Bitcoin whale has stacked over $282 million in BTC since late March as the flagship digital asset struggles to find a bottom after hitting all-time highs. First spotted by blockchain tracking firm Lookonchain, an address beginning with “12QVsfA” bought 4,380 BTC worth $282.38 at an average price of $64,471.", "tickers": [ "BTC" ], "title": "Bitcoin Whale Aggressively Accumulates $282,380,000 Worth of BTC During Correction: On-Chain Data", "topics": [ "whales", "pricemovement" ], "type": "Article" }, { "date": "Sun, 28 Apr 2024 10:24:35 -0400", "image_url": "https://crypto.snapi.dev/images/v1/s/m/crypto10-479656.jpg", "news_url": "https://thecurrencyanalytics.com/marketmovers/lido-dao-sees-short-term-boost-as-bitcoin-faces-challenges-crypto-analyst-insights-111481", "sentiment": "Positive", "source_name": "The Currency Analytics", "text": "In the ever-evolving landscape of cryptocurrencies, expert analysis serves as a guiding light for investors navigating the turbulent waters of the market. Recent insights from seasoned crypto analyst Ali Martinez shed light on both promising opportunities and looming challenges in the realm of digital assets.", "tickers": [ "BTC", "LDO" ], "title": "Lido DAO Sees Short-Term Boost as Bitcoin Faces Challenges: Crypto Analyst Insights", "topics": [], "type": "Article" }, { "date": "Sun, 28 Apr 2024 10:10:09 -0400", "image_url": "https://crypto.snapi.dev/images/v1/6/e/btc-etf-479653.jpg", "news_url": "https://thenewscrypto.com/bitcoin-etfs-in-us-experience-328m-net-outflow-in-volatile-week/?utm_source=snapi", "sentiment": "Negative", "source_name": "TheNewsCrypto", "text": "A massive outflow of $328 million was shown throughout the week. Grayscale's GBTC was the most heavily affected ETF.", "tickers": [ "BTC" ], "title": "Bitcoin ETFs in US Experience $328M Net Outflow in Volatile Week", "topics": [ "pricemovement" ], "type": "Article" } ] } ``` {% endcode %} {% endtab %} {% endtabs %} ### General Crypto News <mark style="color:green;">`action`</mark> `general_cypto_news` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform</td><td>general_crypto_news</td><td>true</td></tr><tr><td>items</td><td><code>integer</code></td><td>The number of news items to return</td><td>3</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the Crypto News | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "date": "Sun, 28 Apr 2024 10:46:42 -0400", "image_url": "https://crypto.snapi.dev/images/v1/o/n/crypto-news-russian-banker-option01-479667.webp", "news_url": "https://crypto.news/beribit-angers-clients-russia-officials-consider-ban/", "sentiment": "Negative", "source_name": "Crypto news", "text": "Protests erupt at Beribit's Moscow office, with clients clamoring for the return of approximately 400 million rubles, funds they were unable to withdraw for several days.", "title": "Beribit in turmoil after Russian officials contemplate crypto exchange ban", "topics": [], "type": "Article" }, { "date": "Sun, 28 Apr 2024 10:10:44 -0400", "image_url": "https://crypto.snapi.dev/images/v1/g/a/crypto-news-court-peoples04-479654.webp", "news_url": "https://crypto.news/custodia-bank-against-court-ruling-fed-masters-account/", "sentiment": "Negative", "source_name": "Crypto news", "text": "Custodia Bank has filed a notice of appeal on April 26, challenging a lower court's decision from March denying its attempt to officially join the U.S. banking system.", "title": "Custodia Bank claps back against court ruling, wants Fed master account", "topics": [], "type": "Article" }, { "date": "Sun, 28 Apr 2024 10:00:36 -0400", "image_url": "https://crypto.snapi.dev/images/v1/w/v/crypto-legislation-479650.webp", "news_url": "https://coinspress.com/congressman-supports-joint-legislation-on-cannabis-banking-and-stablecoin-regulation/?utm_source=snapi", "sentiment": "Positive", "source_name": "Coinspress", "text": "GOP Representative French Hill, a prominent member of the Financial Services Committee, has voiced his support for a legislative package that intertwines marijuana banking and stablecoin regulation.", "title": "Congressman Supports Joint Legislation on Cannabis Banking and Stablecoin Regulation", "topics": [ "stablecoins", "regulations" ], "type": "Article" } ] } ``` {% endcode %} {% endtab %} {% endtabs %} ### Top mentioned Tickers <mark style="color:green;">`action`</mark> `top_mentionaed_tickers` Retrieve the top 50 most mentioned tickers. Use the \&date= parameter to specify your desired date range. **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform</td><td>top_mentionaed_tickers</td><td>true</td></tr><tr><td>date</td><td><code>string</code></td><td>The date to get news for. Please use the following format: MMDDYYYY. You can also use: last5min, last10min, last15min, last30min, last45min, last60min, today, yesterday, last7days, last30days, last60days, last90days, yeartodate.</td><td>last7days</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the Crypto News | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "data": { "all": [ { "name": "Bitcoin", "negative_mentions": 328, "neutral_mentions": 43, "positive_mentions": 793, "sentiment_score": 0.599, "ticker": "BTC", "total_mentions": 1164 }, { "name": "Ethereum", "negative_mentions": 147, "neutral_mentions": 15, "positive_mentions": 208, "sentiment_score": 0.247, "ticker": "ETH", "total_mentions": 370 }, { "name": "Ripple", "negative_mentions": 80, "neutral_mentions": 18, "positive_mentions": 138, "sentiment_score": 0.369, "ticker": "XRP", "total_mentions": 236 }, { "name": "Solana", "negative_mentions": 31, "neutral_mentions": 8, "positive_mentions": 147, "sentiment_score": 0.935, "ticker": "SOL", "total_mentions": 186 }, { "name": "SHIBA INU", "negative_mentions": 22, "neutral_mentions": 8, "positive_mentions": 152, "sentiment_score": 1.071, "ticker": "SHIB", "total_mentions": 182 }, { "name": "Dogecoin", "negative_mentions": 31, "neutral_mentions": 2, "positive_mentions": 63, "sentiment_score": 0.5, "ticker": "DOGE", "total_mentions": 96 }, { "name": "Cardano", "negative_mentions": 21, "neutral_mentions": 6, "positive_mentions": 45, "sentiment_score": 0.5, "ticker": "ADA", "total_mentions": 72 }, { "name": "Pepe", "negative_mentions": 1, "neutral_mentions": 2, "positive_mentions": 56, "sentiment_score": 1.398, "ticker": "PEPE", "total_mentions": 59 }, { "name": "Tether", "negative_mentions": 20, "neutral_mentions": 2, "positive_mentions": 31, "sentiment_score": 0.311, "ticker": "USDT", "total_mentions": 53 }, { "name": "Bonk", "negative_mentions": 3, "neutral_mentions": 3, "positive_mentions": 43, "sentiment_score": 1.224, "ticker": "BONK", "total_mentions": 49 }, { "name": "Dogwifhat", "negative_mentions": 7, "neutral_mentions": 1, "positive_mentions": 39, "sentiment_score": 1.021, "ticker": "WIF", "total_mentions": 47 }, { "name": "Hedera Hashgraph", "negative_mentions": 11, "neutral_mentions": 3, "positive_mentions": 31, "sentiment_score": 0.667, "ticker": "HBAR", "total_mentions": 45 }, { "name": "Binance Coin", "negative_mentions": 4, "neutral_mentions": 2, "positive_mentions": 35, "sentiment_score": 1.134, "ticker": "BNB", "total_mentions": 41 }, { "name": "Terra Classic", "negative_mentions": 29, "neutral_mentions": 2, "positive_mentions": 9, "sentiment_score": -0.75, "ticker": "LUNC", "total_mentions": 40 }, { "name": "Polygon", "negative_mentions": 5, "neutral_mentions": 3, "positive_mentions": 29, "sentiment_score": 0.973, "ticker": "MATIC", "total_mentions": 37 }, { "name": "Toncoin", "negative_mentions": 6, "neutral_mentions": 1, "positive_mentions": 25, "sentiment_score": 0.891, "ticker": "TON", "total_mentions": 32 }, { "name": "USD Coin", "negative_mentions": 2, "neutral_mentions": 0, "positive_mentions": 29, "sentiment_score": 1.306, "ticker": "USDC", "total_mentions": 31 }, { "name": "Terra", "negative_mentions": 27, "neutral_mentions": 1, "positive_mentions": 1, "sentiment_score": -1.345, "ticker": "LUNA", "total_mentions": 29 }, { "name": "Polkadot", "negative_mentions": 5, "neutral_mentions": 1, "positive_mentions": 22, "sentiment_score": 0.911, "ticker": "DOT", "total_mentions": 28 }, { "name": "Polygon Ecosystem Token", "negative_mentions": 2, "neutral_mentions": 2, "positive_mentions": 21, "sentiment_score": 1.14, "ticker": "POL", "total_mentions": 25 }, { "name": "Worldcoin token", "negative_mentions": 5, "neutral_mentions": 2, "positive_mentions": 17, "sentiment_score": 0.75, "ticker": "WLD", "total_mentions": 24 }, { "name": "Renzo", "negative_mentions": 8, "neutral_mentions": 2, "positive_mentions": 11, "sentiment_score": 0.214, "ticker": "REZ", "total_mentions": 21 }, { "name": "Floki Inu", "negative_mentions": 3, "neutral_mentions": 0, "positive_mentions": 17, "sentiment_score": 1.05, "ticker": "FLOKI", "total_mentions": 20 }, { "name": "NEAR Protocol", "negative_mentions": 1, "neutral_mentions": 1, "positive_mentions": 16, "sentiment_score": 1.25, "ticker": "NEAR", "total_mentions": 18 }, { "name": "Optimism Token", "negative_mentions": 3, "neutral_mentions": 0, "positive_mentions": 14, "sentiment_score": 0.971, "ticker": "OP", "total_mentions": 17 }, { "name": "Chainlink", "negative_mentions": 2, "neutral_mentions": 0, "positive_mentions": 15, "sentiment_score": 1.147, "ticker": "LINK", "total_mentions": 17 }, { "name": "Arbitrum", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 14, "sentiment_score": 1.5, "ticker": "ARB", "total_mentions": 14 }, { "name": "Avalanche", "negative_mentions": 3, "neutral_mentions": 0, "positive_mentions": 11, "sentiment_score": 0.857, "ticker": "AVAX", "total_mentions": 14 }, { "name": "Celo", "negative_mentions": 0, "neutral_mentions": 1, "positive_mentions": 12, "sentiment_score": 1.385, "ticker": "CELO", "total_mentions": 13 }, { "name": "Akash Network", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 13, "sentiment_score": 1.5, "ticker": "AKT", "total_mentions": 13 }, { "name": "Stacks", "negative_mentions": 2, "neutral_mentions": 0, "positive_mentions": 11, "sentiment_score": 1.038, "ticker": "STX", "total_mentions": 13 }, { "name": "Litecoin", "negative_mentions": 6, "neutral_mentions": 0, "positive_mentions": 7, "sentiment_score": 0.115, "ticker": "LTC", "total_mentions": 13 }, { "name": "Uniswap", "negative_mentions": 2, "neutral_mentions": 0, "positive_mentions": 10, "sentiment_score": 1, "ticker": "UNI", "total_mentions": 12 }, { "name": "Popcat (SOL)", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 11, "sentiment_score": 1.5, "ticker": "POPCAT", "total_mentions": 11 }, { "name": "TRON", "negative_mentions": 1, "neutral_mentions": 2, "positive_mentions": 8, "sentiment_score": 0.955, "ticker": "TRX", "total_mentions": 11 }, { "name": "Jeo Boden", "negative_mentions": 1, "neutral_mentions": 0, "positive_mentions": 9, "sentiment_score": 1.2, "ticker": "BODEN", "total_mentions": 10 }, { "name": "Stellar Lumens", "negative_mentions": 1, "neutral_mentions": 0, "positive_mentions": 9, "sentiment_score": 1.2, "ticker": "XLM", "total_mentions": 10 }, { "name": "Immutable X", "negative_mentions": 0, "neutral_mentions": 1, "positive_mentions": 8, "sentiment_score": 1.333, "ticker": "IMX", "total_mentions": 9 }, { "name": "Fetch.ai", "negative_mentions": 0, "neutral_mentions": 0, "positive_mentions": 9, "sentiment_score": 1.5, "ticker": "FET", "total_mentions": 9 }, { "name": "Bitcoin Cash", "negative_mentions": 3, "neu
프로젝트로 돌아가기