chatwoot, label + id checks

This commit is contained in:
Alex
2023-03-16 23:02:54 +00:00
parent 7a00df65d0
commit dff87b5fa3
3 changed files with 32 additions and 14 deletions

View File

@@ -162,6 +162,7 @@ def api_answer():
q_prompt = PromptTemplate(input_variables=["context", "question"], template=template_quest,
template_format="jinja2")
if llm_choice == "openai_chat":
#llm = ChatOpenAI(openai_api_key=api_key, model_name="gpt-4")
llm = ChatOpenAI(openai_api_key=api_key)
messages_combine = [
SystemMessagePromptTemplate.from_template(chat_combine_template),