mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-09-09 11:15:08 +08:00
Require labels to be set on labeling task and setting up basic storybook stories for tasks
This commit is contained in:
@@ -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}`, {
|
||||
|
||||
Reference in New Issue
Block a user