Skip to content

Commit 4d24166

Browse files
committed
fix
1 parent 26f29e7 commit 4d24166

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/inference-providers/register-as-a-provider.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,17 @@ export class MyNewProviderTask extends TaskProviderHelper {
7878

7979
makeRoute(params: UrlParams): string {
8080
// Return the route to use for the request. e.g. /v1/chat/completions route is commonly use for chat completion.
81-
raise NotImplementedError("Needs to be implemented")
81+
throw new Error("Needs to be implemented");
8282
}
8383

8484
preparePayload(params: BodyParams): Record<string, unknown> {
8585
// Return the payload to use for the request, as a dict.
86-
raise NotImplementedError("Needs to be implemented")
86+
throw new Error("Needs to be implemented");
8787
}
8888

8989
getResponse(response: TogetherBase64ImageGeneration, outputType?: "url" | "blob"): string | Promise<Blob> {
9090
// Return the response in the expected format.
91-
raise NotImplementedError("Needs to be implemented")
91+
throw new Error("Needs to be implemented");
9292
}
9393
}
9494
```

0 commit comments

Comments
 (0)