From 9108df177c57a4e8f945c1b428585317e962180e Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 20 Jun 2024 01:12:09 -0700 Subject: [PATCH] refac: comments --- src/lib/components/workspace/Functions/FunctionEditor.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/components/workspace/Functions/FunctionEditor.svelte b/src/lib/components/workspace/Functions/FunctionEditor.svelte index d84865b93..210e8db2b 100644 --- a/src/lib/components/workspace/Functions/FunctionEditor.svelte +++ b/src/lib/components/workspace/Functions/FunctionEditor.svelte @@ -36,6 +36,8 @@ class Filter: pass def inlet(self, body: dict, user: Optional[dict] = None) -> dict: + # This method is invoked before the request is sent to the chat completion API. + # It can be used to modify the request body or perform validation checks. print("inlet") print(body) print(user) @@ -50,9 +52,12 @@ class Filter: return body def outlet(self, body: dict, user: Optional[dict] = None) -> dict: + # This method is invoked after the chat completion API has processed + # the request and generated a response. It can be used to overwrite the response messages. print(f"outlet") print(body) print(user) + return body`; const saveHandler = async () => {