From f21cf01cf42ba27737d40cd2a7af98e4f99ec003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Juvenal?= Date: Thu, 12 Sep 2024 12:05:06 -0300 Subject: [PATCH 1/2] Fix the RAG question rewrite of the retriever node --- django_ai_assistant/helpers/assistants.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/django_ai_assistant/helpers/assistants.py b/django_ai_assistant/helpers/assistants.py index a4010d2..3551b6f 100644 --- a/django_ai_assistant/helpers/assistants.py +++ b/django_ai_assistant/helpers/assistants.py @@ -424,12 +424,17 @@ class AgentState(TypedDict): def setup(state: AgentState): return {"messages": [SystemMessage(content=self.get_instructions())]} + def history(state: AgentState): + history = message_history.messages if message_history else [] + return {"messages": [*history, HumanMessage(content=state["input"])]} + def retriever(state: AgentState): if not self.has_rag: return retriever = self.get_history_aware_retriever() - docs = retriever.invoke({"input": state["input"], "history": state["messages"]}) + messages_without_input = state["messages"][:-1] + docs = retriever.invoke({"input": state["input"], "history": messages_without_input}) document_separator = self.get_document_separator() document_prompt = self.get_document_prompt() @@ -444,10 +449,6 @@ def retriever(state: AgentState): ) } - def history(state: AgentState): - history = message_history.messages if message_history else [] - return {"messages": [*history, HumanMessage(content=state["input"])]} - def agent(state: AgentState): response = llm_with_tools.invoke(state["messages"]) @@ -467,16 +468,16 @@ def record_response(state: AgentState): workflow = StateGraph(AgentState) workflow.add_node("setup", setup) - workflow.add_node("retriever", retriever) workflow.add_node("history", history) + workflow.add_node("retriever", retriever) workflow.add_node("agent", agent) workflow.add_node("tools", ToolNode(tools)) workflow.add_node("respond", record_response) workflow.set_entry_point("setup") - workflow.add_edge("setup", "retriever") - workflow.add_edge("retriever", "history") - workflow.add_edge("history", "agent") + workflow.add_edge("setup", "history") + workflow.add_edge("history", "retriever") + workflow.add_edge("retriever", "agent") workflow.add_conditional_edges( "agent", tool_selector, From a028527eae5fd57b2b80776b63c7247e77b549db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Juvenal?= Date: Thu, 12 Sep 2024 15:45:14 -0300 Subject: [PATCH 2/2] Fix tests --- .../test_AIAssistant_with_rag_invoke.yaml | 1624 +---------------- tests/test_helpers/test_assistants.py | 16 +- 2 files changed, 65 insertions(+), 1575 deletions(-) diff --git a/tests/test_helpers/cassettes/test_assistants/test_AIAssistant_with_rag_invoke.yaml b/tests/test_helpers/cassettes/test_assistants/test_AIAssistant_with_rag_invoke.yaml index c163a43..c75ff1c 100644 --- a/tests/test_helpers/cassettes/test_assistants/test_AIAssistant_with_rag_invoke.yaml +++ b/tests/test_helpers/cassettes/test_assistants/test_AIAssistant_with_rag_invoke.yaml @@ -1,1275 +1,4 @@ interactions: -- request: - body: '{"messages": [{"content": "You are a tour guide assistant offers information - about nearby attractions. The user is at a location and wants to know what to - learn about nearby attractions. Use the following pieces of context to suggest - nearby attractions to the user. If there are no interesting attractions nearby, - tell the user there''s nothing to see where they''re at. Use three sentences - maximum and keep your suggestions concise.\n\n---START OF CONTEXT---\nCentral - Park\n\nAmerican Museum of Natural History---END OF CONTEXT---\n", "role": "system"}, - {"content": "I''m at Central Park W & 79st, New York, NY 10024, United States.", - "role": "user"}], "model": "gpt-4o", "n": 1, "stream": true, "temperature": - 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '713' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: 'data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"You''re"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - right"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - by"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - the"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - American"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Museum"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - of"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Natural"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - History"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - one"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - of"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - the"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - largest"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - museums"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - in"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - the"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - world"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - featuring"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - fascinating"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - exhibits"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - on"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - dinosaurs"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - human"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - origins"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - and"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - outer"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - space"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Additionally"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - you''re"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - at"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - the"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - edge"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - of"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Central"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Park"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - a"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - sprawling"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - urban"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - oasis"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - with"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - scenic"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - walking"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - trails"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - lakes"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - and"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - the"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - iconic"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Central"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Park"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Zoo"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Enjoy"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - the"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - blend"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - of"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - natural"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - beauty"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - and"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - cultural"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - richness"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"!"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDL4rdu7ob1AX3xNJKldu1XGlan","object":"chat.completion.chunk","created":1718125487,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} - - - data: [DONE] - - - ' - headers: - Connection: - - keep-alive - Content-Type: - - text/event-stream; charset=utf-8 - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "Given a chat history and the latest user question - which might reference context in the chat history, formulate a standalone question - which can be understood without the chat history. Do NOT answer the question, - just reformulate it if needed and otherwise return it as is.", "role": "system"}, - {"content": "I''m at Central Park W & 79st, New York, NY 10024, United States.", - "role": "user"}, {"content": "You''re right by the American Museum of Natural - History, one of the largest museums in the world, featuring fascinating exhibits - on dinosaurs, human origins, and outer space. Additionally, you''re at the edge - of Central Park, a sprawling urban oasis with scenic walking trails, lakes, - and the iconic Central Park Zoo. Enjoy the blend of natural beauty and cultural - richness!", "role": "assistant"}, {"content": "11 W 53rd St, New York, NY 10019, - United States.", "role": "user"}], "model": "gpt-4o", "n": 1, "stream": true, - "temperature": 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '971' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: 'data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"I''m"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - currently"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - at"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - "},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"11"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - W"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - "},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"53"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"rd"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - St"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - New"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - York"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - NY"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - "},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"100"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"19"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDPo8oC6c3JY1s7mW4fhu6oIjRM","object":"chat.completion.chunk","created":1718125491,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} - - - data: [DONE] - - - ' - headers: - Connection: - - keep-alive - Content-Type: - - text/event-stream; charset=utf-8 - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "You are a tour guide assistant offers information - about nearby attractions. The user is at a location and wants to know what to - learn about nearby attractions. Use the following pieces of context to suggest - nearby attractions to the user. If there are no interesting attractions nearby, - tell the user there''s nothing to see where they''re at. Use three sentences - maximum and keep your suggestions concise.\n\n---START OF CONTEXT---\nCentral - Park\n\nAmerican Museum of Natural History---END OF CONTEXT---\n", "role": "system"}, - {"content": "I''m at Central Park W & 79st, New York, NY 10024, United States.", - "role": "user"}, {"content": "You''re right by the American Museum of Natural - History, one of the largest museums in the world, featuring fascinating exhibits - on dinosaurs, human origins, and outer space. Additionally, you''re at the edge - of Central Park, a sprawling urban oasis with scenic walking trails, lakes, - and the iconic Central Park Zoo. Enjoy the blend of natural beauty and cultural - richness!", "role": "assistant"}, {"content": "11 W 53rd St, New York, NY 10019, - United States.", "role": "user"}], "model": "gpt-4o", "n": 1, "stream": true, - "temperature": 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '1204' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: 'data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"You''re"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - at"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - the"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - location"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - of"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - the"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Museum"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - of"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Modern"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Art"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - ("},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"Mo"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"MA"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"),"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - home"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - to"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - an"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - extensive"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - collection"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - of"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - modern"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - and"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - contemporary"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - art"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - including"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - works"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - by"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Van"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Gogh"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Picasso"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - and"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - War"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"hol"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Nearby"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - you"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - can"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - also"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - visit"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Rockefeller"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Center"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":","},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - known"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - for"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - its"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - impressive"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - architecture"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - and"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - the"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Top"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - of"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - the"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - Rock"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - observation"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - deck"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - These"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - attractions"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - offer"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - a"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - blend"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - of"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - artistic"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - and"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - urban"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":" - experiences"},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{"content":"."},"logprobs":null,"finish_reason":null}]} - - - data: {"id":"chatcmpl-9YzDQI7dQ7PF1IkWGSjKH4HjOHVAp","object":"chat.completion.chunk","created":1718125492,"model":"gpt-4o-2024-05-13","system_fingerprint":"fp_319be4768e","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]} - - - data: [DONE] - - - ' - headers: - Connection: - - keep-alive - Content-Type: - - text/event-stream; charset=utf-8 - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "Given a chat history and the latest user question - which might reference context in the chat history, formulate a standalone question - which can be understood without the chat history. Do NOT answer the question, - just reformulate it if needed and otherwise return it as is.", "role": "system"}, - {"content": "You are a tour guide assistant offers information about nearby - attractions. The user is at a location and wants to know what to learn about - nearby attractions. Use the following pieces of context to suggest nearby attractions - to the user. If there are no interesting attractions nearby, tell the user there''s - nothing to see where they''re at. Use three sentences maximum and keep your - suggestions concise.\n\n---START OF CONTEXT---\n{context}---END OF CONTEXT---\n", - "role": "system"}, {"content": "I''m at Central Park W & 79st, New York, NY - 10024, United States.", "role": "user"}], "model": "gpt-4o", "n": 1, "stream": - false, "temperature": 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '979' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAAwAAAP//VJFPS8NAEMXv+RTDnhtJ0z/aXkSrWEGLoFCKSJgm02btZneZnaJF+t0l - aWzrZQ/vt2/2vdmfCEDpQo1B5SVKXnkT3wynyT2zJLcvyWy7mBb3u7cn//D8eDc1C9WpHW75Sbn8 - uS5yV3lDop094JwJheqp3ct0mAyuhqOkAZUryNS2tZe47+I0SftxMoi7vdZYOp1TUGN4jwAAfpqz - jmgL+lZjaMY0SkUh4JrU+HgJQLEztaIwBB0ErajOCebOCtkm9bxEAWQCKQksIS93gCKMeV0iAApM - yAqjgRfkDcwpCKAt4HIkJbwKEwloCzP6goXjDUy07K7PH2NabQPWXe3WmFbfH9Mbt/bslqHlR32l - rQ5lxoTB2TppEOdVQ/cRwEezpe2/4sqzq7xk4jZkQ7Pz3mGeOv3LGR21UJygOdfTqE2owi4IVdlK - 2zWxZ31Y2spn6WCY9pF6OFDRPvoFAAD//wMA3v8QVz0CAAA= - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "You are a tour guide assistant offers information - about nearby attractions. The user is at a location and wants to know what to - learn about nearby attractions. Use the following pieces of context to suggest - nearby attractions to the user. If there are no interesting attractions nearby, - tell the user there''s nothing to see where they''re at. Use three sentences - maximum and keep your suggestions concise.\n\n---START OF CONTEXT---\n{context}---END - OF CONTEXT---\n", "role": "system"}, {"content": "---START OF CONTEXT---\nCentral - Park\n\nAmerican Museum of Natural History---END OF CONTEXT---\n", "role": "system"}, - {"content": "I''m at Central Park W & 79st, New York, NY 10024, United States.", - "role": "user"}], "model": "gpt-4o", "n": 1, "stream": false, "temperature": - 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '804' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAAwAAAP//VFLLbtswELz7Kxa8+GIbfrfxLUiDJkBbtIcegqIw1tRKYkxxVe7KshH4 - 3wvKqp1eeJjZGQ53+DYAMC4zGzC2RLVV7cf366fpY/1lt2g/83763OY/FocqOxQ/P5V/HswoKXj3 - Slb/qSaWq9qTOg4X2kZCpeQ6+zBfT1cf13fTjqg4I59kRa3jJY/n0/lyPF2NZ4teWLKzJGYDvwYA - AG/dmSKGjI5mA51Nh1QkggWZzXUIwET2CTEo4kQxqBndSMtBKXSpX7gBiwEOTpyClgT3FUWXoK+N - UFMB5/ANtYno4cmJcjyNoC2dLcEJeLbpfRBdUSoEOioowwMFTfPfMe4n8KxDAQQpOSq06PeAIQPO - c4oCOYp1AdWFAuhYup1TAQ6A0LqMIGIoKEUIfQSxjoIlUK6dlQk8hlc+wY617MLXGPdDuU7vCBs9 - dfcltupeNBSgrLGYWkIPLYeMokzeLyhS3gimfkLjfY+frxv3XNSRd9LzVzx3wUm5jYTCIW1XlGvT - secBwO+u2ea/skwduap1q7ynkAxny8XFz9z+0o1d9bUbZUX/TnW3GPQJjZxEqdrmLhQU6+guRef1 - dr5az5dIC1yZwXnwFwAA//8DADpH7jTxAgAA - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "Given a chat history and the latest user question - which might reference context in the chat history, formulate a standalone question - which can be understood without the chat history. Do NOT answer the question, - just reformulate it if needed and otherwise return it as is.", "role": "system"}, - {"content": "You are a tour guide assistant offers information about nearby - attractions. The user is at a location and wants to know what to learn about - nearby attractions. Use the following pieces of context to suggest nearby attractions - to the user. If there are no interesting attractions nearby, tell the user there''s - nothing to see where they''re at. Use three sentences maximum and keep your - suggestions concise.\n\n---START OF CONTEXT---\n{context}---END OF CONTEXT---\n", - "role": "system"}, {"content": "11 W 53rd St, New York, NY 10019, United States.", - "role": "user"}], "model": "gpt-4o", "n": 1, "stream": false, "temperature": - 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '963' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAAwAAAP//VJHNbtswEITveooFz1IhyZYT+1IEMJD24h6aIj9FYayllc1a4hLcFVoj - 8LsXVBQ7vfAw3w45O3xNAIxtzApMfUCte99ld4sv+X319O20Htbt7fHpZr5+ePj60gyN25BJo4N3 - v6nWd9enmnvfkVp2b7gOhErx1uKmXOTV7WJZjqDnhrpo23vN5pyVeTnP8iorZpPxwLYmMSv4mQAA - vI5njOga+mtWkKfvSk8iuCezugwBmMBdVAyKWFF0atIrrNkpuTH14wEVMBAI9wSOMOxOgKoB67iF - ACoUBTxCNQsNfNcUNvQHnjkcU9g8Q5HnxTKFH84qRYxK8vnjU4HaQTBu6oaum/TzJXvHex94JxO/ - 6K11Vg7bQCjsYk5R9mak5wTg19jR8N/axgfuvW6Vj+RkbHzqyFx/5UrLaoLKit0H17JKpoRGTqLU - b1vr9hR8sG+VtX5bVotyjjTDyiTn5B8AAAD//wMAtwpy5zsCAAA= - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "You are a tour guide assistant offers information - about nearby attractions. The user is at a location and wants to know what to - learn about nearby attractions. Use the following pieces of context to suggest - nearby attractions to the user. If there are no interesting attractions nearby, - tell the user there''s nothing to see where they''re at. Use three sentences - maximum and keep your suggestions concise.\n\n---START OF CONTEXT---\n{context}---END - OF CONTEXT---\n", "role": "system"}, {"content": "---START OF CONTEXT---\nCentral - Park\n\nAmerican Museum of Natural History---END OF CONTEXT---\n", "role": "system"}, - {"content": "I''m at Central Park W & 79st, New York, NY 10024, United States.", - "role": "user"}, {"content": "You can visit the American Museum of Natural History, - which is located right next to Central Park. It''s a short walk and offers fascinating - exhibits on a wide range of natural science topics. Enjoy both the park''s natural - beauty and the museum''s educational wonders.", "role": "assistant"}, {"content": - "11 W 53rd St, New York, NY 10019, United States.", "role": "user"}], "model": - "gpt-4o", "n": 1, "stream": false, "temperature": 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '1189' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAAwAAAP//VFJNb9swDL37VxC6dAPiIHE+1uaWw7AWQ4ABBbYVwxAoMm2rkURPpPOB - ov+9kJMm3UWH9/geyUe9ZADKlmoByjRajG9dvpzfj+5v97vxb12yfdjJ4XEbnw7lv/L75FENkoI2 - z2jkXTU05FuHYimcaBNRCybX8ZdiPprdzu8mPeGpRJdkdSv5lPJiVEzz0SwfT87ChqxBVgv4kwEA - vPRvGjGUeFALGA3eEY/Muka1uBQBqEguIUozWxYdRA2upKEgGPqpn6i7iQjR1o3A5gjSIKw6xs4D - VbCiEmOAZRT4tKLV8vMQHuSGQcOeoivziIH2AUvwJ0mFWrpoQw06AB4EA9sdgiHn0KRUkmnf3bcU - dTyCDiX4UxcdZQhfwzMdAQ+to97HGgrWpHZbhiqSh0p76jhVWxYGZ7cIP3WAb1Q3A/hhjWamQW/8 - S8eG3PDj6hGrjnVKPnTOnfHXS5aO6jbShs/8Ba9ssNysI2qmkHJjoVb17GsG8Le/WfffGVQbybey - FtpiSIbF+O7kp66/5MpOp2dSSLT7oJpPsvOEio8s6NeVDTXGNtrTCat2XczmxVTjRM9U9pq9AQAA - //8DAMCLIMDLAgAA - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "Given a chat history and the latest user question - which might reference context in the chat history, formulate a standalone question - which can be understood without the chat history. Do NOT answer the question, - just reformulate it if needed and otherwise return it as is.", "role": "system"}, - {"content": "You are a tour guide assistant offers information about nearby - attractions. The user is at a location and wants to know what to learn about - nearby attractions. Use the following pieces of context to suggest nearby attractions - to the user. If there are no interesting attractions nearby, tell the user there''s - nothing to see where they''re at. Use three sentences maximum and keep your - suggestions concise.", "role": "system"}, {"content": "I''m at Central Park - W & 79st, New York, NY 10024, United States.", "role": "user"}], "model": "gpt-4o", - "n": 1, "stream": false, "temperature": 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '920' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1SRQW/aQBCF7/4Voz3jyjYYCJeqSlupUoqokogmUYXW6zHest6xdoY2UcR/r9YQ - SC8+vG/f05vn1wRA2VotQJlWi+l6l36aLvn6a/Vj9eXqeXn3c3b3iDffb76tp59Xa6NG0UHVbzTy - 5vpgqOsdiiV/xCagFoyp+ayYZvMyz7IBdFSji7ZtL+mE0iIrJmlWpvn4ZGzJGmS1gKcEAOB1+MaK - vsZntYAhZlA6ZNZbVIvzIwAVyEVFaWbLor2o0QUa8oJ+aL1utYAOCEwdgkcdqhfQIkGbeAWDEPyx - bAW0wDV6CdrBSocdrJEFtK9hdiUt3EpAFLAelvgXHijsRrB8gDzLiskI7r0VrOFWtCB/fF8lYLNn - HZfwe+dO+uF8m6NtH6jiEz/rjfWW201AzeTjHSzUq4EeEoBfw4b7/2ZRfaCul43QDn0MzMv5MU9d - /tqFFm9QSLR755pPk1NDxS8s2G0a67cY+mCPkzb9Ji9n1Xg+zptSJYfkHwAAAP//AwDTLoRgWwIA - AA== - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "You are a tour guide assistant offers information - about nearby attractions. The user is at a location and wants to know what to - learn about nearby attractions. Use the following pieces of context to suggest - nearby attractions to the user. If there are no interesting attractions nearby, - tell the user there''s nothing to see where they''re at. Use three sentences - maximum and keep your suggestions concise.", "role": "system"}, {"content": - "---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural History---END - OF CONTEXT---\n", "role": "system"}, {"content": "I''m at Central Park W & 79st, - New York, NY 10024, United States.", "role": "user"}], "model": "gpt-4o", "n": - 1, "stream": false, "temperature": 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '745' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAAwAAAP//VJJPb9pAEMXv/hTTvfRiEJg/QdyithJKRFSpl1ZRhZZlbC/YO9bMmMSJ - +O7VGgLpZQ/vt2/2ad6+JwDG78wSjCuturqpBvfzJ/n+az3fVfg7PKzeHnXx+GZpWx/X+5VJo4O2 - e3T64Ro6qpsK1VM4Y8doFePU8V02Hy1m49G4BzXtsIq2otHBlAbZKJsORrPBeHIxluQdilnCcwIA - 8N6fMWLY4atZwij9UGoUsQWa5fUSgGGqomKsiBe1QU16g46CYuhT/6H2KyOwL0qFbQffMCjbCn5a - PqTQIOfoFHJisCAOg3fwYqsDEEPjXfBuCA+tKFjHJAJaIogyoqbQUQvOBjh68dqT+xrZR2ndCrY1 - UA5PVtv43sqLEncpvJTelUB5jiyQW3E+WPWhAHwt/darAAXAI3KnZZRzphp2PpDYlgWUgFpFBmms - wyH8CHvqYhQG9TV++bwGxrwVG1sIbVVd9NN1rxUVDdNWLvyq5z54KTeMVijEHYpSY3p6SgD+9v21 - /1ViGqa60Y3SAUMcOM4W53nm9mNudDq7QCW11SfX3SS5JDTSiWK9yX0okBv25zrzZpPN5tnU4sTO - THJK/gEAAP//AwC6ETmv1wIAAA== - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "Given a chat history and the latest user question - which might reference context in the chat history, formulate a standalone question - which can be understood without the chat history. Do NOT answer the question, - just reformulate it if needed and otherwise return it as is.", "role": "system"}, - {"content": "You are a tour guide assistant offers information about nearby - attractions. The user is at a location and wants to know what to learn about - nearby attractions. Use the following pieces of context to suggest nearby attractions - to the user. If there are no interesting attractions nearby, tell the user there''s - nothing to see where they''re at. Use three sentences maximum and keep your - suggestions concise.", "role": "system"}, {"content": "11 W 53rd St, New York, - NY 10019, United States.", "role": "user"}], "model": "gpt-4o", "n": 1, "stream": - false, "temperature": 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '904' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAAwAAAP//VJFLa8MwEITv/hWLznaxnLpNcimhBPqAXEopoZQg22tbqa0V0qZP8t+L - HCdtLzrMp1nNrL4jAKErMQdRtorL3nbJ4mLll+9r9bVazhZ3i4+iaW/f7q+3X5W+YREHBxVbLPno - Oiuptx2yJnPApUPFGKbKy+wineYyzQbQU4VdsDWWk3NKsjQ7T9I8kZPR2JIu0Ys5PEcAAN/DGSKa - Cj/EHNL4qPTovWpQzE+XAISjLihCea89K3OIO8KSDKMZUj+1ikE5BG4RDCpXfIJidqoMJTwoRztT - gZTwBPnEVfDAMazwHdbkXmNYrUGmqZzF8Gg0Y8CK0V/9fc1hvfMqlDW7rhv1/Sl+R411VPiRn/Ra - G+3bjUPlyYSonsmKge4jgJdhTbt/zYV11FveML2iCQNlnh/mid+P+aXZETKx6v64pmk0JhT+0zP2 - m1qbBp11+rC12m5kfllMphNZ5yLaRz8AAAD//wMA0Ofn4T4CAAA= - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "You are a tour guide assistant offers information - about nearby attractions. The user is at a location and wants to know what to - learn about nearby attractions. Use the following pieces of context to suggest - nearby attractions to the user. If there are no interesting attractions nearby, - tell the user there''s nothing to see where they''re at. Use three sentences - maximum and keep your suggestions concise.", "role": "system"}, {"content": - "---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural History---END - OF CONTEXT---\n", "role": "system"}, {"content": "I''m at Central Park W & 79st, - New York, NY 10024, United States.", "role": "user"}, {"content": "You''re right - by Central Park, perfect for a scenic walk or picnic. Just across the street, - you can visit the American Museum of Natural History, which offers fascinating - exhibits on everything from dinosaurs to outer space. Enjoy your time!", "role": - "assistant"}, {"content": "11 W 53rd St, New York, NY 10019, United States.", - "role": "user"}], "model": "gpt-4o", "n": 1, "stream": false, "temperature": - 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '1104' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1RSy44TQQy85ytMXwBpssprAptbFgHiEF4nHkJRp8eT6aSn3dieXaJV/h31JJvA - pQ9VLrvs6scBgPGVWYBxjVXXpjBczj/K+3d69/bLLI1+6PTzBynn9bfbT91u+tsUWUGbHTp9Ut04 - alNA9RRPtGO0irnr+NVkPnpdjkeznmipwpBl26TDGQ0no8lsOCqH4+lZ2JB3KGYBPwcAAI/9my3G - Cv+YBYyKJ6RFEbtFs7gUARimkBFjRbyojWqKK+koKsbe9XfqnjNCRMugDcKqE+xaoBpWVCFHWLLC - ixWtli8LeGi8a6BGqx2jgI3g28Qo4u8RHIWALq+e1f2INhFbPoCNFbSndpb1BpZV5XOhDeFQwOFk - wQUSBCX4Sm6PNYaADG8wKnKejIy5EpyNgHFHB5CGkhRQ+ejjtuiH5A1oI8j3tjdSodtDTQw+OsbK - bwKC83qAe48PcgN3pA1YVba9cQHLCG0nOhREefbvzRjrTmyOLHYhnPHjJYRA28S0kTN/wWsfvTRr - RisU88FFKZmePQ4AfvVhd//lZxJTm3SttMeYG45vb0/9zPV7XdlydiaV1IYrPimng7NDIwdRbNe1 - j1vkxP6UfZ3Wk3I+mVmc2tIMjoO/AAAA//8DAOKObt8EAwAA - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK - request: body: '{"messages": [{"content": "Given a chat history and the latest user question which might reference context in the chat history, formulate a standalone question @@ -1305,133 +34,13 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA1SRwW7bMBBE7/qKBc9SITGS7PhSBLkkF7dBELhBEBhraW2xpkiWXNUJAv97QVmx - 0wsP83YWs8OPBECoVixANB1y0zud3dTLwc4OdJ8/DA+Fe7oNv/7e9z8Od3L1x4k0OuzmNzX86frW - 2N5pYmXNCTeekCluLWayzueVrOUIetuSjrad46y0mcxlmeVVVlxNxs6qhoJYwEsCAPAxvjGiaelN - LCBPP5WeQsAdicV5CEB4q6MiMAQVGA2L9AIba5jMmHrVIQN6Au4IjGXcaAJk9tjEKwIYQg+3ZNij - hp/o97CiwICmhdk1d/DInohTWNIBnq3fp7B8hiLPZZnCk1FMLTwyMoXvXxN42g4BYwFm0HrSj+eT - tN05bzdh4md9q4wK3doTBmti/MDWiZEeE4DXsbrhvzaE87Z3vGa7JxMXFtX8tE9cPutCZT1Btoz6 - i2teJlNCEd4DU7/eKrMj77w6Nbl1a1nVskS6wkokx+QfAAAA//8DAENg4sRSAgAA - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "You are a tour guide assistant offers information - about nearby attractions. The user is at a location and wants to know what to - learn about nearby attractions. Use the following pieces of context to suggest - nearby attractions to the user. If there are no interesting attractions nearby, - tell the user there''s nothing to see where they''re at. Use three sentences - maximum and keep your suggestions concise.", "role": "system"}, {"content": - "---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural History---END - OF CONTEXT---\n", "role": "system"}, {"content": "I''m at Central Park W & 79st, - New York, NY 10024, United States.", "role": "user"}], "model": "gpt-4o", "n": - 1, "stream": false, "temperature": 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '745' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAAwAAAP//VFJNb1oxELzzK1a+9AIRPD6CuEWVqkoRaW5RW1Vo8dv3nouf1/KuW2jE - f68MBJKLDzM7O6Mdvw4AjKvNCoztUG0f/ehh8ZTj7vHlZd21P9bTZsld+pYeJ//a7ZdshkXB299k - 9U11Z7mPntRxONM2ESqVrZP7ajFezqvF9ET0XJMvsjbqaMajalzNRuP5aDK9CDt2lsSs4OcAAOD1 - 9JaIoaa9WcF4+Ib0JIItmdV1CMAk9gUxKOJEMagZ3kjLQSmcUn/n/CkRJNd2CoH2CsqgHcFDT8lZ - DLDOQrkHbuAJNSf08NWJcjoM4W/nbAcNFZwEGhTrAqoLLdC+c1unAhyA/lA6aFfgJnEPtQssmJMU - L4lo6Q6efZYhHM5pUE8RqG6p+H6moMX3GdNuCJFSQ1ah4QQIoom9B06QyOO+eGDvalHYEmZ1Tfbg - MdRiMZLcvb9CoiYLlhJC9v6CH69n9dzGxFu58Fe8ccFJt0mEwqGcUJSjObHHAcCvU335QyMmJu6j - bpR3FMrCSbU87zO3D3NjZ9WFVFb071T348EloZGDKPWbxoWWUkzu3GYTN9V8Uc2Qpjg3g+PgPwAA - AP//AwDQesQS1gIAAA== - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "Given a chat history and the latest user question - which might reference context in the chat history, formulate a standalone question - which can be understood without the chat history. Do NOT answer the question, - just reformulate it if needed and otherwise return it as is.", "role": "system"}, - {"content": "You are a tour guide assistant offers information about nearby - attractions. The user is at a location and wants to know what to learn about - nearby attractions. Use the following pieces of context to suggest nearby attractions - to the user. If there are no interesting attractions nearby, tell the user there''s - nothing to see where they''re at. Use three sentences maximum and keep your - suggestions concise.", "role": "system"}, {"content": "11 W 53rd St, New York, - NY 10019, United States.", "role": "user"}], "model": "gpt-4o", "n": 1, "stream": - false, "temperature": 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '904' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1SRT4/aMBDF7/kUI5+TVZwQoFxWi9pTKxapXVFUVcgkE+KSeFx7opZFfPfK4W8v - Pryf3/i98TECELoSMxBlo7jsbJu8jBe9m3/M5vMvy+p1+d58H32y3VKtfuffPos4OGj7C0u+up5K - 6myLrMmccelQMYapcpKN02mRjYsBdFRhG2w7y8mIkizNRklaJDK/GBvSJXoxgx8RAMBxOENEU+Ff - MYM0viodeq92KGa3SwDCURsUobzXnpVhEd9hSYbRDKlXjWJQDsFTh2BQue0BFLNTZWjhQTnqTQVS - wgqK3FXwlWNY4B9Yk9vHsFiDTFP5IYY3oxkDVoz++fE5h3XvVWhr+ra96Kdb/pZ21tHWX/hNr7XR - vtk4VJ5MyOqZrBjoKQL4Oeyp/6+6sI46yxumPZowUBbFeZ64/8ydZlfIxKp9cE3T6JJQ+INn7Da1 - Njt01unz2mq7kcVkm09zWRciOkX/AAAA//8DACNhDe0/AgAA + H4sIAAAAAAAAAwAAAP//VJHBbtswEETv+ooFDz1JhaRIiu1LUfScIKhRBEZRGGtpLdGmSIK7bpIG + /veCsmqnFx7mcYazy/cEQOlOrUC1A0o7epN9bQ7VxnZr0X+qesfrfnGs9Oa3+X54WDYqjQ63O1Ar + /1yfWzd6Q6KdveA2EArF1OK+bIqmqZf5BEbXkYm23ktWuazMyyrL66y4m42D0y2xWsHPBADgfTpj + RdvRq1rBFDMpIzFjT2p1vQSggjNRUcisWdCKSm+wdVbITq2fBxTAQMBuJLCEYfcGKBKwjVMwoMA3 + shLQwBOGIzwTC3yC+6UMsJZAJCk80gtsXDim8LiBIs/LKoUfVgt1sBYU4i8fXw+0PzHG4e3JmFk/ + X8cxrvfB7XjmV32vreZhGwjZ2VidxXk10XMC8Gta2+m/TSgf3OhlK+5INgYW9eKSp24fdaNlM0Nx + guaDa1Elc0PFbyw0bvfa9hR80Jct7v22rJuyQrrDWiXn5C8AAAD//wMAk6nwpU4CAAA= headers: Connection: - keep-alive @@ -1457,135 +66,10 @@ interactions: nearby attractions to the user. If there are no interesting attractions nearby, tell the user there''s nothing to see where they''re at. Use three sentences maximum and keep your suggestions concise.", "role": "system"}, {"content": - "---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural History---END - OF CONTEXT---\n", "role": "system"}, {"content": "I''m at Central Park W & 79st, - New York, NY 10024, United States.", "role": "user"}, {"content": "You''re right - next to the American Museum of Natural History, which features fascinating exhibits - on everything from dinosaurs to space. Plus, you''re at the edge of Central - Park, perfect for a stroll or relaxing amidst beautiful landscapes.", "role": - "assistant"}, {"content": "11 W 53rd St, New York, NY 10019, United States.", - "role": "user"}], "model": "gpt-4o", "n": 1, "stream": false, "temperature": - 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '1103' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAAwAAAP//VFJNb9swDL37VxC6bAPsIHGdtM0t2GXDlh2GDdgHhkCRaVu1LAoi3TYo - +t8HOV/bRYf3+MhHPr1kAMrWag3KdFrMEFyxWX0ZhasPm/uPfX+HzeI5fv7+7ZHmn36VP1SeFLR/ - QCNn1czQEByKJX+kTUQtmLoubsvV/G5Zrm4nYqAaXZK1QYqKinJeVsV8WSxuTsKOrEFWa/idAQC8 - TG+y6Gt8VmuY52dkQGbdolpfigBUJJcQpZkti/ai8itpyAv6yfVPGt9EBI86gnQI25FxHIAa2FKN - 0cMmCrzd0nbzLoenzpoO9qRZGLQHO4SIzPYRwZBzaNLiSTsNGAJFHQ+gfQ3DsZmO8kSx5xls6tqm - au3cIYfD0YVxxAhC8JVMjw06hxHeoxeMaThGTJVgtAf0D3QA7ihwDrX11rf5NCkt0eiBRgZrsOBe - i/UtROv72b83iNiMrFMEfnTuhL9ejuqoDZH2fOIveGO95W4XUTP5dEAWCmpiXzOAP1N44395qBBp - CLIT6tGnhov71bGfun6XK1udSSHR7oqXVZmdHCo+sOCwa6xvMYZoj1k2YVcuV2Wl8UYvVfaa/QUA - AP//AwBcbrCW1AIAAA== - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "Given a chat history and the latest user question - which might reference context in the chat history, formulate a standalone question - which can be understood without the chat history. Do NOT answer the question, - just reformulate it if needed and otherwise return it as is.", "role": "system"}, - {"content": "You are a tour guide assistant offers information about nearby - attractions. The user is at a location and wants to know what to learn about - nearby attractions. Use the following pieces of context to suggest nearby attractions - to the user. If there are no interesting attractions nearby, tell the user there''s - nothing to see where they''re at. Use three sentences maximum and keep your - suggestions concise.", "role": "system"}, {"content": "I''m at Central Park - W & 79st, New York, NY 10024, United States.", "role": "user"}], "model": "gpt-4o", + "I''m at Central Park W & 79st, New York, NY 10024, United States.", "role": + "user"}, {"content": "---START OF CONTEXT---\nCentral Park\n\nAmerican Museum + of Natural History---END OF CONTEXT---\n", "role": "system"}], "model": "gpt-4o", "n": 1, "stream": false, "temperature": 1.0}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - authorization: - - DUMMY - connection: - - keep-alive - content-length: - - '920' - content-type: - - application/json - host: - - api.openai.com - user-agent: - - OpenAI/Python - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA1SRQW8aMRCF7/srRj60F7YCL0solwpFapMLqtRDGkUVGswsa/B6LHuWNIn479Uu - G0gvPrzPb/ze+C0DUHarFqBMjWKa4PLlbHV83i9f7/jV/bDHdqP13e/9MbTf5XapRp2DN3sy8u76 - YrgJjsSyP2MTCYW6qZMbPRvPy6LQPWh4S66z7YLkU871WE/zcZlPisFYszWU1AKeMgCAt/7sIvot - /VULGI/elYZSwh2pxeUSgIrsOkVhSjYJelGjKzTshXyf+qFGAYwEiRsCTxg3L4AiEU3XIsE9GPRw - tMkK2AruPzeAArfkJaKDnxgP8EBJ4BPcfJUafkkkErAeVvQMjxwPI1g9fvv4eqSqTdiV961zg366 - 1HG8C5E3aeAXvbLepnodCRP7LnoSDqqnpwzgT7+29r9NqBC5CbIWPpDvBk7K+Xmeun7UlepygMKC - 7oNrXmRDQpVeklCzrqzfUQzRnrdYhbUuZ3qKVGCpslP2DwAA//8DAKfaPTVOAgAA - headers: - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: Sun, 09 Jun 2024 23:39:08 GMT - Server: DUMMY - Transfer-Encoding: - - chunked - X-Content-Type-Options: - - nosniff - access-control-expose-headers: - - X-Request-ID - status: - code: 200 - message: OK -- request: - body: '{"messages": [{"content": "You are a tour guide assistant offers information - about nearby attractions. The user is at a location and wants to know what to - learn about nearby attractions. Use the following pieces of context to suggest - nearby attractions to the user. If there are no interesting attractions nearby, - tell the user there''s nothing to see where they''re at. Use three sentences - maximum and keep your suggestions concise.", "role": "system"}, {"content": - "---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural History---END - OF CONTEXT---\n", "role": "system"}, {"content": "I''m at Central Park W & 79st, - New York, NY 10024, United States.", "role": "user"}], "model": "gpt-4o", "n": - 1, "stream": false, "temperature": 1.0}' headers: accept: - application/json @@ -1608,16 +92,15 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA1RSy24bMQy8+ytYne3A8auGb+m7BZoWaA8tisLgarle2VpRpajE2yD/XmjtPHoR - hBnOkODwbgRgXG02YGyLarvoJ1er65ujnU17Dp++/InHPsoi7z7+3b//8UbMuCi42pPVB9WF5S56 - UsfhRFshVCquly9nq+l6OZ/PB6LjmnyR7aJOFjyZTWeLyXQ5uZyfhS07S8ls4NcIAOBueMuIoaaj - 2cB0/IB0lBLuyGweiwCMsC+IwZRcUgxqxk+k5aAUhql/cgYUAnG7VqHqQVuCq47EWQzwOSfKHXAD - 16hZ0MMHl5SlH8NtS0LQc4ZSSMfoWQgaTNYFVBd2QMfWVU4TcAC6Iem1LXAj3EHtAifMkkAZOCsJ - pIiWLuA1BS2NvqIcwCVAnxj2OSkkpZgAb7EfAzcNSXGrCLO6JntQQefTGCoe2o8BQw3OcnAWPIa6 - Qzkk8O5A8Iq0pVQjfCcRtDSUflPB24pEenjnyNfpAt6GPfeAEEkasgqVp1CXbYSyjZPMZl/+L57v - V6jJCUu8IXt/xu8fA/O8i8JVOvOPeOOCS+1WCBOHEk5SjmZg70cAv4fDyP9lbaJwF3WrfKBQDC9n - 65OfeTrFJ3b5QCor+meq9Wp0ntCkPil128aFHUkUd7qTJm5ny9VsgTTHpRndj/4BAAD//wMAN+Gj - +zADAAA= + H4sIAAAAAAAAAwAAAP//VFLLjhoxELzzFS1fchkQwwIh3EikCCXK6xIpG0XImB7Gi8c96m7zyIp/ + jzywsLn4UOWqLrv6uQdg/MbMwbjaqmva0F9Mn8aPp58/9suDEn7++3E/fvxWLvC0PNLYFFlB6yd0 + +qIaOGragOopXmjHaBWza/l2NC2n08m7siMa2mDIsm2r/TH1R8PRuD+c9MuHq7Am71DMHH73AACe + uzNHjBs8mjkMixekQRG7RTO/XQIwTCEjxop4URvVFHfSUVSMXepflN4wAvttrbA+wQeMyjbAd8u7 + AlrkCp1CRQwWxGH0Dg427KAD9l68ghJ4FahsQ0kg2LhpLO9kAJ+SKFjHJAJaI4gyohZwogTORsBj + G4ix4xYNss/glySYGqAKvlpNOcrSixKfCqipwTytsuJ8tOrjFvBY+3UeTxHq1NgILgVNjFJ0vvFq + ciAOmwJs3HRwin6PLDiA96Q1UFVhfhB7V+dYyB6jQ/DxYoCdsL4EGbz+SsYqic1NxhTCFT/fugm0 + bZnWcuVveOWjl3rFaIVi7kGUWtOx5x7An24H0n+1mpapaXWltMOYDcvR7OJn7lt3Z6fXBTFKasMr + 1WzWuyY0chLFZlX5uEVu2V9WompXo8l0NLb4YCemd+79AwAA//8DALP7VSgbAwAA headers: Connection: - keep-alive @@ -1646,9 +129,15 @@ interactions: nearby attractions. Use the following pieces of context to suggest nearby attractions to the user. If there are no interesting attractions nearby, tell the user there''s nothing to see where they''re at. Use three sentences maximum and keep your - suggestions concise.", "role": "system"}, {"content": "11 W 53rd St, New York, - NY 10019, United States.", "role": "user"}], "model": "gpt-4o", "n": 1, "stream": - false, "temperature": 1.0}' + suggestions concise.", "role": "system"}, {"content": "I''m at Central Park + W & 79st, New York, NY 10024, United States.", "role": "user"}, {"content": + "You''re right by Central Park, perfect for a scenic walk or a visit to its + famous landmarks. Just across the street, you can explore the American Museum + of Natural History, home to fascinating exhibits on human cultures, the natural + world, and the universe. Both offer a rich experience in nature and history.", + "role": "assistant"}, {"content": "11 W 53rd St, New York, NY 10019, United + States.", "role": "user"}], "model": "gpt-4o", "n": 1, "stream": false, "temperature": + 1.0}' headers: accept: - application/json @@ -1659,7 +148,7 @@ interactions: connection: - keep-alive content-length: - - '904' + - '1347' content-type: - application/json host: @@ -1671,13 +160,13 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA1SRzYvbMBDF7/4rBp3t4o84zeZSSnvYwhJallKWpYSJPXbUtTVCM24blvzvRc7X - 9qLD++mN3hu9JgDGtmYNptmjNqMfso/Lze/Dl8e7VrCvN58fym/Lh/L+ftVh1301aXTw7hc1enG9 - a3j0A6lld8JNIFSKU4v35TJf1VW1mMHILQ3R1nvNFpyVebnI8jorqrNxz7YhMWt4TgAAXuczRnQt - /TVryNOLMpII9mTW10sAJvAQFYMiVhSdmvQGG3ZKbk79CR0ceAKZ+p5EwRGG3QFQNWATewigQlHA - D6ir0MKjprChP/DE4SWFzRMUeV7cpfDdWaWIUUk+vH0sUDcJxq5uGoazfrymH7j3gXdy5le9s87K - fhsIhV1MKsrezPSYAPyctzT9V9z4wKPXrfILuTiwqOvTPHP7lxstL1BZcXjjWuXJOaGRgyiN2866 - noIP9rS0zm/LelkukCqsTXJM/gEAAP//AwAnkigEPQIAAA== + H4sIAAAAAAAAA1SRwW7bMBBE7/qKBc9SIdGSDPtSNMccXBRFawRFYWyklcyE4hLkGmkb+N8Lyorj + XHiYxxnOLl8zAGV6tQXVHVG6ydviS/tUo+V/sR92Y6m/6nb/cv9tszbru59B5cnBj0/UyZvrU8eT + tySG3QV3gVAopVZr3VZt22z0DCbuySbb6KWoudClrouyKarVYjyy6SiqLfzKAABe5zNVdD39UVso + 8zdlohhxJLW9XgJQgW1SFMZooqATlb/Djp2Qm1vvjyiAIgG71DoCBgJHGKCqYA/NKvTwXXLY0Qs8 + cHjOYfcAVVlWmxx+OCOUMArFz7cPBBpOEdN87mTtop+vjS2PPvBjXPhVH4wz8XgIhJFdaheFvZrp + OQP4PW/m9GFY5QNPXg7Cz+RSoK7rS556/4sbulqgsKC90dt1tjRU8W8Umg6DcSMFH8xlUYM/6KbV + NdIKG5Wds/8AAAD//wMAji1wrTECAAA= headers: Connection: - keep-alive @@ -1703,16 +192,15 @@ interactions: nearby attractions to the user. If there are no interesting attractions nearby, tell the user there''s nothing to see where they''re at. Use three sentences maximum and keep your suggestions concise.", "role": "system"}, {"content": - "---START OF CONTEXT---\nCentral Park\n\nAmerican Museum of Natural History---END - OF CONTEXT---\n", "role": "system"}, {"content": "I''m at Central Park W & 79st, - New York, NY 10024, United States.", "role": "user"}, {"content": "You are right - by the American Museum of Natural History, where you can explore fascinating - exhibits on everything from dinosaurs to outer space. Central Park is also just - steps away, offering beautiful trails, boating, and iconic landmarks like Bethesda - Terrace and Strawberry Fields. Enjoy a perfect blend of nature and culture!", - "role": "assistant"}, {"content": "11 W 53rd St, New York, NY 10019, United - States.", "role": "user"}], "model": "gpt-4o", "n": 1, "stream": false, "temperature": - 1.0}' + "I''m at Central Park W & 79st, New York, NY 10024, United States.", "role": + "user"}, {"content": "You''re right by Central Park, perfect for a scenic walk + or a visit to its famous landmarks. Just across the street, you can explore + the American Museum of Natural History, home to fascinating exhibits on human + cultures, the natural world, and the universe. Both offer a rich experience + in nature and history.", "role": "assistant"}, {"content": "11 W 53rd St, New + York, NY 10019, United States.", "role": "user"}, {"content": "---START OF CONTEXT---\nCentral + Park\n\nAmerican Museum of Natural History---END OF CONTEXT---\n", "role": "system"}], + "model": "gpt-4o", "n": 1, "stream": false, "temperature": 1.0}' headers: accept: - application/json @@ -1723,7 +211,7 @@ interactions: connection: - keep-alive content-length: - - '1193' + - '1172' content-type: - application/json host: @@ -1735,16 +223,16 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAAwAAAP//VFLbahsxEH33Vwx6aQtr46wvCX5LSi8QnJZQUtpSzFg761Wt1YjRrF0n - 5N+L1s6lL0LM0TkzR3MeBgDGVWYBxjaoto1+eDm/2d3Hu7sP1z/LaRXj8nYz+Zjur67vP7dfTJEZ - vP5DVp9YI8tt9KSOwxG2QqiUVc/Oy/n4YjaZzHqg5Yp8pm2iDqc8LMfldDieDc8mJ2LDzlIyC/g1 - AAB46M88Yqjor1nAuHiqtJQSbsgsnh8BGGGfKwZTckkxqCleQMtBKfRT/+DujRCggjYEyy5R1wLX - sOSKJMClKLxd8vLyXQH7xtkGakLthBJgANdGoZTcjsCy92Sz8czuG7SRBeUAGCpoj3IoWoAL1neV - CxvYs2wTrA9whwE+8aYp4DtKw77oSV+dxZR4BDeEsj4UcOAOLAZAnxh2LjmFW7Zbqsl7EnhPQUmg - ZgGnCZzl4Cw4S5C2qLmhuLDtpSMGFmydhZ2jfYJauO1/4BvHbCBfszTwOpHssDdWkd2O4Iq1AVQV - 7O0m4LomAYRN3jXYzmsn6IH+RhJHwRK40As2hKL957pKeR9giaFBVQyj19sRqruEORyh8/5Uf3xe - t+dNFF6nE/5cr11wqVkJYeKQV5uUo+nRxwHA7z5W3X9JMVG4jbpS3lLIguVZedQzL0F+Qc+nJ1BZ - 0b9iXcwHpwlNOiSldlW7sCGJ4o4pq+OqnM3LKdIEZ2bwOPgHAAD//wMACpSosW4DAAA= + H4sIAAAAAAAAA1RSTYsaQRC9+yuKviSBUdRVl/VmEnKKEMJCyIYgbU+N09rT1VRV68qy/z306H7k + 0jT16r169fE0ADC+NkswrrXquhSGq8V+tn1ox/u7+P3X9m772K6+fru9H4/z9kdrqsKg7R6dvrBG + jroUUD3FC+wYrWJRndxOF5PFYn530wMd1RgKbZd0OKPhdDydDcfz4eTmSmzJOxSzhD8DAICn/i0W + Y42PZgnj6iXSoYjdoVm+JgEYplAixop4URvVVG+go6gYe9e/KX9gBPa7ViGiZdAWYZ0FcwfUwJpq + 5AgrVvi4pvXqUwWn1rsWWsqCAjaC7xKjiD8iOAoBXWm/cLsL18Ya+opdIrZ8Bss6glVd+5JoQzhX + 8JPcARsMARm+YFRk8AL7LAoWpCVWONlwAHuy5woatJrZx12BklTAKGoz26hS9fVKE/eUiovyLfJA + W0E+2t5dje4ADTGI5hiLkvN6hqPHk4zgM2kLgVyfK5CYjr5GwMjetX1yDprZhr6WlNkJYgEoJWLN + 0atHGb2fOWOTxZaVxxzCNf78usRAu8S0lSv+Gm989NJuGK1QLAsTpWR69HkA8Lc/lvzf/k1i6pJu + lA4Yi+B0MrvombfzfEMXkyuopDa8Y93OB1eHRs6i2G0aH3fIif3ldpq0mc4X05nFGzs3g+fBPwAA + AP//AwC+wHFRRAMAAA== headers: Connection: - keep-alive diff --git a/tests/test_helpers/test_assistants.py b/tests/test_helpers/test_assistants.py index 70cf7fd..aaf5865 100644 --- a/tests/test_helpers/test_assistants.py +++ b/tests/test_helpers/test_assistants.py @@ -172,16 +172,18 @@ def test_AIAssistant_with_rag_invoke(): assert response_0["input"] == "I'm at Central Park W & 79st, New York, NY 10024, United States." assert response_0["output"] == ( - "You're right by Central Park, perfect for a scenic walk or picnic. Just across the " - "street, you can visit the American Museum of Natural History, which offers fascinating " - "exhibits on everything from dinosaurs to outer space. Enjoy your time!" + "You're right by Central Park, perfect for a scenic walk or a visit to its famous landmarks. " + "Just across the street, you can explore the American Museum of Natural History, " + "home to fascinating exhibits on human cultures, the natural world, and the universe. " + "Both offer a rich experience in nature and history." ) assert response_1["input"] == "11 W 53rd St, New York, NY 10019, United States." assert response_1["output"] == ( - "You're near the Museum of Modern Art (MoMA), which features an impressive collection " - "of contemporary and modern art. Additionally, you're close to Rockefeller Center, " - "where you can enjoy shops, dining, and the observation deck for incredible city " - "views. Both attractions are must-sees!" + "You're right near the Museum of Modern Art (MoMA), " + "which houses an impressive collection of modern and contemporary art. " + "Additionally, Rockefeller Center is just a short walk away, " + "featuring shops, restaurants, and the Top of the Rock observation deck for stunning city views. " + "Both locations provide enriching cultural and sightseeing opportunities." ) expected_messages = messages_to_dict(