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
| // In agents.models: | |
| "nvidia/moonshotai/kimi-k2.5": { | |
| "alias": "kimi" | |
| } | |
| // In the root | |
| "models": { | |
| "mode": "merge", | |
| "providers": { | |
| "nvidia": { |
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
| interface R2EventMessage { | |
| account: string; | |
| action: "PutObject" | "CopyObject" | "CompleteMultipartUpload" | "DeleteObject"; | |
| bucket: string; | |
| object?: { key: string; size?: number; eTag?: string }; | |
| eventTime: string; | |
| copySource?: { bucket: string; object: string }; | |
| } | |
| type Env = { |
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
| import { createReadStream } from "node:fs"; | |
| import { DeleteObjectCommand, S3Client } from "@aws-sdk/client-s3"; | |
| import { Upload } from "@aws-sdk/lib-storage"; | |
| import { getContentType } from "."; | |
| import { PostError, PostErrorType } from "../types"; | |
| export class S3MediaUploader { |
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
| import { createReadStream } from "node:fs"; | |
| import { DeleteObjectCommand, S3Client } from "@aws-sdk/client-s3"; | |
| import { Upload } from "@aws-sdk/lib-storage"; | |
| import { getContentType } from "."; | |
| import { PostError, PostErrorType } from "../types"; | |
| export class S3MediaUploader { |
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
| import {recoverPublicKey, hashMessage} from "ethers/lib/utils" | |
| // DID token generated from Wallet API /account endpoint | |
| const didToken = "WyIweDAyMTdhMjRlMTFkYTg4NTU2YWUwYzMxNzc3OWE4MGQ2OGYxNDY1YWMzNmY0ZWY4Yjk2YTY1ZTZkNzUxZWExMjk0NDZmZDc2N2NjZjczYTliZmFhZTEzZDczNDAxODNlZTliOWM3ODBkOGNkYzJlNDEzOWI5NzdlZWViYjkzYzExMWIiLCJ7XCJpYXRcIjoxNzEyMDQ5MTYxLFwiZXh0XCI6MTcxMjA1Mjc2MSxcImlzc1wiOlwiZGlkOmV0aHI6MHhmQjI1YTQxYTY0ZTc0ZjVDNmIyM2IyRkI0NDhDZjkzNDUxODlhM2U1XCIsXCJlbWFpbFwiOlwidmxhZGltaXIuaGFsdGFrb3ZAZ21haWwuY29tXCJ9Il0" | |
| // Public address generated from the Wallet API /account endpoint | |
| const actPublicKey = "0x04b5640e6b4e0590adf368105897c98acffde2dad3e1c148d6bcd05f410d5fb1a019bc7dea9e04badad53f81713317d931a926b7f4418bafc6cdb1a43dce1cb663" | |
| // Decompose the DID token into signature and payload | |
| const [signature, payload] = JSON.parse(Buffer.from(didToken, "base64").toString("utf-8")); |
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
| # Disbale unneeded blog features | |
| ARCHIVES_SAVE_AS = "" | |
| AUTHOR_SAVE_AS = "" | |
| AUTHORS_SAVE_AS = "" | |
| CATEGORY_SAVE_AS = "" | |
| CATEGORIES_SAVE_AS = "" | |
| TAGS_SAVE_AS = "" |