File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
frontend/src/api/openapi/services Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments