Skip to content

Commit 3ce7b6e

Browse files
committed
change
1 parent 96d708b commit 3ce7b6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/copilot_flow/copilot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def get_chat_response(chat_input: str, chat_history: list = []) -> ChatResponse:
4848
searchQuery = intentPrompty(query=chat_input, chat_history=chat_history)
4949

5050
# retrieve relevant documents and context given chat_history and current user query (chat_input)
51+
print(os.environ["AZURE_OPENAI_API_KEY"])
5152
documents = get_documents(searchQuery, 3)
5253

5354
# send query + document context to chat completion for a response
@@ -57,7 +58,7 @@ def get_chat_response(chat_input: str, chat_history: list = []) -> ChatResponse:
5758
'parameters': {
5859
'max_tokens': 256,
5960
'temperature': 0.2,
60-
'stream': True # always stream responses, consumers/clients should handle streamed response
61+
'stream': False # always stream responses, consumers/clients should handle streamed response
6162
}
6263
})
6364
result = chatPrompty(

0 commit comments

Comments
 (0)