Download packages/protocol/src/middleware/schema-error.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 277 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/protocol/src/middleware/schema-error.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/protocol/src/middleware/schema-error.ts
-
curl -L -o schema-error.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/protocol/src/middleware/schema-error.ts
277 Bytes
| import { HttpApiMiddleware } from "effect/unstable/httpapi" | |
| import { InvalidRequestError } from "../errors" | |
| export class SchemaErrorMiddleware extends HttpApiMiddleware.Service<SchemaErrorMiddleware>()( | |
| "@opencode/HttpApiSchemaError", | |
| { error: InvalidRequestError }, | |
| ) {} | |