summaryrefslogtreecommitdiff
path: root/cachegpt/joblib/kg_rag/utility/get_GPT_response
diff options
context:
space:
mode:
authormaszhongming <mingz5@illinois.edu>2025-09-16 15:15:29 -0500
committermaszhongming <mingz5@illinois.edu>2025-09-16 15:15:29 -0500
commit73c194f304f827b55081b15524479f82a1b7d94c (patch)
tree5e8660e421915420892c5eca18f1ad680f80a861 /cachegpt/joblib/kg_rag/utility/get_GPT_response
Initial commit
Diffstat (limited to 'cachegpt/joblib/kg_rag/utility/get_GPT_response')
-rw-r--r--cachegpt/joblib/kg_rag/utility/get_GPT_response/func_code.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cachegpt/joblib/kg_rag/utility/get_GPT_response/func_code.py b/cachegpt/joblib/kg_rag/utility/get_GPT_response/func_code.py
new file mode 100644
index 0000000..20a5bd9
--- /dev/null
+++ b/cachegpt/joblib/kg_rag/utility/get_GPT_response/func_code.py
@@ -0,0 +1,5 @@
+# first line: 222
+@memory.cache
+def get_GPT_response(instruction, system_prompt, chat_model_id, chat_deployment_id, temperature=0):
+ res = fetch_GPT_response(instruction, system_prompt, chat_model_id, chat_deployment_id, temperature)
+ return res