Skip to content

Commit

Permalink
Quickfixes (#18)
Browse files Browse the repository at this point in the history
* tiny bugfix but important

* version
  • Loading branch information
erhant authored Dec 14, 2023
1 parent 9953831 commit 9a7b565
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firstbatch",
"version": "0.1.2",
"version": "0.1.3",
"author": "FirstBatch Team <[email protected]>",
"license": "MIT",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion src/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class FirstBatchClient {
return await this.post<any>('embeddings/update_state', {
id: session.id,
state: state,
batchType: batchType.toUpperCase(), // NOTE: api expects uppercased values for this field
batch_type: batchType.toUpperCase(), // NOTE: api expects uppercased values for this field
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/client/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class FirstBatch extends FirstBatchClient {
userAction.actionType.label
);

if (this.enableHistory) {
if (resp.success && this.enableHistory) {
await this.addHistory(session, [contentId]);
}

Expand Down

0 comments on commit 9a7b565

Please sign in to comment.