Spaces:
Runtime error
Runtime error
Download simple-tasks/test-task.ts from BTankut/Context-Store-LLM: direct link, hf CLI and curl.
- Browser
- Download file 543 Bytes
-
https://huggingface.co/spaces/BTankut/Context-Store-LLM/resolve/main/simple-tasks/test-task.ts
- Command line
-
hf download hf://spaces/BTankut/Context-Store-LLM/simple-tasks/test-task.ts
-
curl -L -o test-task.ts https://huggingface.co/spaces/BTankut/Context-Store-LLM/resolve/main/simple-tasks/test-task.ts
543 Bytes
| import { task } from "@trigger.dev/sdk"; | |
| export const testTask = task({ | |
| id: "context-ship-test", | |
| run: async (payload: { message: string }) => { | |
| console.log("Context Ship Test Task running:", payload.message); | |
| // Simple HTTP request instead of database | |
| const response = await fetch("https://api.github.com/zen"); | |
| const zen = await response.text(); | |
| return { | |
| success: true, | |
| message: payload.message, | |
| zen: zen, | |
| timestamp: new Date().toISOString(), | |
| version: "v4.0.0" | |
| }; | |
| }, | |
| }); | |