This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # vast-qwen.sh — spin up / tear down a 2x RTX 3090 vast.ai box serving | |
| # Qwen3.8-27B via vLLM: a plain OpenAI-compatible | |
| # API on localhost:8080, usable from opencode, aider, LiteLLM, curl, etc. | |
| # | |
| # Requires: curl, jq, ssh (all already on this machine). No vastai CLI, no pip. | |
| # | |
| # Auth: export VAST_API_KEY=xxxx (from https://cloud.vast.ai/manage-keys/) | |
| # or put the key alone in ~/.vast_api_key | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // matrix/src/lib/common/common.ts | |
| import { httpClient, HttpMethod, AuthenticationType, HttpResponse } from "@activepieces/pieces-common"; | |
| export async function getRoomId(baseUrl: string, roomAlias: string, accessToken: string): Promise<HttpResponse> { | |
| const response = httpClient.sendRequest({ | |
| method: HttpMethod.GET, | |
| url: `${baseUrl}/_matrix/client/r0/directory/room/${encodeURIComponent(roomAlias)}`, | |
| authentication: { | |
| type: AuthenticationType.BEARER_TOKEN, |