thomas commited on
Commit ·
8324b6b
1
Parent(s): 4c99672
bugfix: fixed extension config issues and updates sendNotification for brwoser.
Browse filesFiles changed (4)
113 unmodified lines114115116117118119120121122123124125113 unmodified lineselse:# """FALCON_7B:"""result["content"] = falcon_llm.query(question=query)return str(result)except ValueError as e:# Check sms and browser queryif document_id in COMMAND_SMS_INDEXES:return str({"program": "sms", "content": chain_data})elif document_id in COMMAND_BROWSER_OPEN:return str({"program": "browser", "content": "https://google.com"})return str({"program": "message", "content": falcon_llm.query(question=query)})113 unmodified lines114115116117118119120121122123124125126127128129113 unmodified lineselse:# """FALCON_7B:"""result["content"] = falcon_llm.query(question=query)return json.dumps(result)except ValueError as e:# Check sms and browser queryif document_id in COMMAND_SMS_INDEXES:return json.dumps({"program": "sms", "content": chain_data})elif document_id in COMMAND_BROWSER_OPEN:return json.dumps({"program": "browser", "content": "https://google.com"})if is_browser:return json.dumps({"program": "ask_website", "content": ""})return json.dumps({"program": "message", "content": falcon_llm.query(question=query)})
116 unmodified lines11711811912012112212312449 unmodified lines174175176177178179180181116 unmodified linesimage_search=image_search,is_browser=is_browser,)result = json.dumps(message["content"])return parseJsonFromCompletion(result)else:first_query = "The total length of the content that I want to send you is too large to send in only one piece.\nFor sending you that content, I will follow this rule:\n[START PART 1/10]\nThis is the content of the part 1 out of 10 in total\n[END PART 1/10]\nThen you just answer: 'Received part 1/10'\nAnd when I tell you 'ALL PART SENT', then you can continue processing the data and answering my requests."app.generate(messages=[{"role": "user", "content": first_query}])49 unmodified linesimage_search=image_search,is_browser=is_browser,)result = json.dumps(message["content"])return parseJsonFromCompletion(result)# out of for-loop116 unmodified lines11711811912012112212312412512612749 unmodified lines177178179180181182183184185186187116 unmodified linesimage_search=image_search,is_browser=is_browser,)try:return json.loads(message["content"])except Exception as e:result = json.dumps(message["content"])return parseJsonFromCompletion(result)else:first_query = "The total length of the content that I want to send you is too large to send in only one piece.\nFor sending you that content, I will follow this rule:\n[START PART 1/10]\nThis is the content of the part 1 out of 10 in total\n[END PART 1/10]\nThen you just answer: 'Received part 1/10'\nAnd when I tell you 'ALL PART SENT', then you can continue processing the data and answering my requests."app.generate(messages=[{"role": "user", "content": first_query}])49 unmodified linesimage_search=image_search,is_browser=is_browser,)try:return json.loads(message["content"])except Exception as e:result = json.dumps(message["content"])return parseJsonFromCompletion(result)# out of for-loop
95 unmodified lines9697989910010110210310410595 unmodified linesuuid=uuid, search=result["content"])result["content"] = str(contacts_results)notification = {"title": "alert", "content": json.dumps(result)}state, value = cloud_message.send_message(notification, [token])return assembler.to_response(200, value, result)except Exception as e:logger.error(95 unmodified lines9697989910010110210310410510695 unmodified linesuuid=uuid, search=result["content"])result["content"] = str(contacts_results)value = ""if not client_info.is_browser():notification = {"title": "alert", "content": json.dumps(result)}state, value = cloud_message.send_message(notification, [token])return assembler.to_response(200, value, result)except Exception as e:logger.error(
6 unmodified lines7891011121314151617186 unmodified linesconst {Footer, Content} = Layout;const confs = {"openai_key": "string","pinecone_key": "string","pinecone_env": "string","firebase_key": "string","token": "","uuid": "","settings": {"temperature": 0.6}6 unmodified lines7891011121314151617186 unmodified linesconst {Footer, Content} = Layout;const confs = {"openai_key": "","pinecone_key": "","pinecone_env": "","firebase_key": "","token": "","uuid": "extension-uuid","settings": {"temperature": 0.6}
Brain/src/rising_plugin/guardrails-config/actions/actions.py+8-4
Brain/src/rising_plugin/risingplugin.py+10-4
Brain/src/router/api.py+4-3
Extension/src/pages/Panel/Panel.jsx+5-5