Skip to content

Commit 53ad067

Browse files
committed
updated api, adding missing routes
1 parent 5bf4a31 commit 53ad067

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

frontend/src/api/openapi/services/MemoService.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,30 @@ export class MemoService {
148148
},
149149
});
150150
}
151+
/**
152+
* Generates a 1–2 sentence memo suggestion using Ollama based on the attached object
153+
* @returns string Successful Response
154+
* @throws ApiError
155+
*/
156+
public static generateMemoSuggestion({
157+
attachedObjId,
158+
attachedObjType,
159+
}: {
160+
attachedObjId: number;
161+
attachedObjType: AttachedObjectType;
162+
}): CancelablePromise<string> {
163+
return __request(OpenAPI, {
164+
method: "GET",
165+
url: "/memo/generate_suggestion/{attached_obj_type}/{attached_obj_id}",
166+
path: {
167+
attached_obj_id: attachedObjId,
168+
attached_obj_type: attachedObjType,
169+
},
170+
errors: {
171+
422: `Validation Error`,
172+
},
173+
});
174+
}
151175
/**
152176
* Returns Memo Table Info.
153177
* @returns ColumnInfo_MemoColumns_ Successful Response

0 commit comments

Comments
 (0)