ShadowTEM commited on
Commit
1fb5ba8
·
verified ·
1 Parent(s): 5c15dec

fixed a bug

Browse files
Files changed (1) hide show
  1. app/llm.py +2 -2
app/llm.py CHANGED
@@ -53,7 +53,7 @@ class LLMProcessor:
53
  # else:
54
  # print("Warning: No default local model specified in configuration.")
55
 
56
- def get_oncoassist_system_instruction(rag_context_for_query):
57
  return f"""
58
  You are "OncoAssist", a highly knowledgeable, empathetic, and precise AI assistant. Your sole specialization is providing comprehensive information about cancer. Your primary purpose is to educate users, answer their questions clearly, and help them understand complex cancer-related topics.
59
 
@@ -211,7 +211,7 @@ class LLMProcessor:
211
  # model = genai.GenerativeModel(model_name) # This is one way
212
  # Or directly use the model name string in generate_content if using the new client structure
213
 
214
- system_instruction_text = get_oncoassist_system_instruction(rag_context)
215
 
216
  # The 'history' list already contains all previous turns.
217
  # The API expects the 'contents' to be the full conversation history
 
53
  # else:
54
  # print("Warning: No default local model specified in configuration.")
55
 
56
+ def get_oncoassist_system_instruction(self,rag_context_for_query):
57
  return f"""
58
  You are "OncoAssist", a highly knowledgeable, empathetic, and precise AI assistant. Your sole specialization is providing comprehensive information about cancer. Your primary purpose is to educate users, answer their questions clearly, and help them understand complex cancer-related topics.
59
 
 
211
  # model = genai.GenerativeModel(model_name) # This is one way
212
  # Or directly use the model name string in generate_content if using the new client structure
213
 
214
+ system_instruction_text = self.get_oncoassist_system_instruction(rag_context)
215
 
216
  # The 'history' list already contains all previous turns.
217
  # The API expects the 'contents' to be the full conversation history