Require labels to be set on labeling task and setting up basic storybook stories for tasks

This commit is contained in:
Keith Stevens
2023-01-16 18:51:01 +09:00
parent a42f2cd3ed
commit a2f68c7259
6 changed files with 18 additions and 4 deletions
+7 -1
View File
@@ -16,7 +16,13 @@ export class OasstError {
}
export class OasstApiClient {
constructor(private readonly oasstApiUrl: string, private readonly oasstApiKey: string) {}
oasstApiUrl: string;
oasstApiKey: string;
constructor(oasstApiUrl: string, oasstApiKey: string) {
this.oasstApiUrl = oasstApiUrl;
this.oasstApiKey = oasstApiKey;
}
private async post(path: string, body: any): Promise<any> {
const resp = await fetch(`${this.oasstApiUrl}${path}`, {