Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perplexity: citations #299

Open
davidpirro opened this issue Apr 28, 2024 · 14 comments
Open

Perplexity: citations #299

davidpirro opened this issue Apr 28, 2024 · 14 comments
Labels
enhancement New feature or request

Comments

@davidpirro
Copy link

First,

Thank you very much for this great package!

I'm (also) using perplexity. So far I successfully managed to set gptel in order to make API calls to the perplexity models.

One of the nice points of perplexity, at least when used in the browser, is the listing of the citations or sources with links that the model used to formulate the answer. Links that one can follow.

Would it be possible to include this information also when using perplexity through gptel in emacs? That would be awesome!

Thank you for your reply!

@karthink
Copy link
Owner

If the Perplexity API supports it, sure. I don't see an option for this in the chat completions API.

Kagi includes the links as part of the responses, for example, and gptel formats them as Markdown or Org links.

@davidpirro
Copy link
Author

I've just asked perplexity itself how to do this ;) and this is the reply I got:

Yes, it is possible to retrieve source references when making API calls to Perplexity AI[1](https://github.com/joaomdmoura/crewAI/issues/245)[3](https://docs.perplexity.ai/discuss/657832bd0778bb006b9a14d4)[4](https://docs.typingmind.com/chat-models-settings/use-with-perplexity-ai). Here's how you can do it:

    Include the Referer header in your API requests to specify the source URL of the request[1](https://github.com/joaomdmoura/crewAI/issues/245)[3](https://docs.perplexity.ai/discuss/657832bd0778bb006b9a14d4). For example:

python
headers = {
    "Authorization": f"Bearer {PERPLEXITY_API_KEY}",
    "Content-Type": "application/json",
    "Referer": "https://www.perplexity.ai/"
}

    Check the citations field in the API response JSON to get the source references for the generated response[4](https://docs.typingmind.com/chat-models-settings/use-with-perplexity-ai). The citations field will contain an array of URLs that provide the sources.

By following these steps, you can retrieve the same source references in your API calls as you would see in the Perplexity AI browser chat[1](https://github.com/joaomdmoura/crewAI/issues/245)[3](https://docs.perplexity.ai/discuss/657832bd0778bb006b9a14d4)[4](https://docs.typingmind.com/chat-models-settings/use-with-perplexity-ai). Keep in mind that the Referer header is not mandatory and can be spoofed, so it may not be 100% reliable for identifying the source of an API call[1](https://github.com/joaomdmoura/crewAI/issues/245). Additionally, some servers may not use the Referer header for tracking purposes.

Does that make any sense to you?

@karthink
Copy link
Owner

Yup, that makes sense. I don't have a perplexity account, will you be able to test some code if I provide it here?

@davidpirro
Copy link
Author

Yes, sure.

@karthink
Copy link
Owner

karthink commented Apr 28, 2024

Okay, run the following code after adjusting the :models and :key fields:

(defvar gptel--perplexity
  (gptel-make-openai "Perplexity"
    :host "api.perplexity.ai"
    :key "your-api-key"
    :endpoint "/chat/completions"
    :stream t
    :header (lambda () (when-let (key (gptel--get-api-key))
                    `(("Authorization" . ,(concat "Bearer " key))
                      ("Referer" . "https://www.perplexity.ai/"))))
    :models '("pplx-7b-chat"
              "pplx-70b-chat"
              "pplx-7b-online"
              "pplx-70b-online")))

(setq gptel-backend gptel--perplexity
      gptel-log-level 'debug)
  1. Next, use gptel and get a response from Perplexity that should include citations.

  2. Open the *gptel-log* buffer and scrub your API key from it.

  3. Paste the contents of *gptel-log* here.

You can kill the *gptel-log* buffer, turn off/on streaming responses (setq gptel-stream nil) and repeat steps 1-3.

@davidpirro
Copy link
Author

{
  "gptel": "request headers",
  "timestamp": "2024-04-28 22:00:06"
}
{
  "Content-Type": "application/json",
  "Authorization": "Bearer XXX",
  "Referer": "https://www.perplexity.ai/"
}
{
  "gptel": "request body",
  "timestamp": "2024-04-28 22:00:06"
}
{
  "model": "sonar-medium-online",
  "messages": [
    {
      "role": "system",
      "content": "You are a large language model living in Emacs and a helpful assistant. Respond concisely."
    },
    {
      "role": "user",
      "content": "How is a Dynamical Systems in mathematical terms defined as a tuple?"
    }
  ],
  "stream": true,
  "temperature": 1.0
}
{"gptel": "request Curl command", "timestamp": "2024-04-28 22:00:06"}
curl \
--disable \
--location \
--silent \
--compressed \
-XPOST \
-y300 \
-Y1 \
-D- \
-w\(65ba0a892632a4b037138858b393291d\ .\ \%\{size_header\}\) \
-d\{\"model\"\:\"sonar-medium-online\"\,\"messages\"\:\[\{\"role\"\:\"system\"\,\"content\"\:\"You\ are\ a\ large\ language\ model\ living\ in\ Emacs\ and\ a\ helpful\ assistant.\ Respond\ concisely.\"\}\,\{\"role\"\:\"user\"\,\"content\"\:\"How\ is\ a\ Dynamical\ Systems\ in\ mathematical\ terms\ defined\ as\ a\ tuple\?\"\}\]\,\"stream\"\:true\,\"temperature\"\:1.0\} \
-HContent-Type\:\ application/json \
-HAuthorization\:\ Bearer\ XXX \
-HReferer\:\ https\://www.perplexity.ai/ \
https\://api.perplexity.ai/chat/completions
{
  "gptel": "response headers",
  "timestamp": "2024-04-28 22:00:09"
}
"HTTP/2 200 \r\ndate: Sun, 28 Apr 2024 20:00:07 GMT\r\ncontent-type: text/event-stream; charset=utf-8\r\ncache-control: no-cache\r\ncf-cache-status: DYNAMIC\r\nset-cookie: __cf_bm=8OjOmqfuxfwJpqFeV1WXPfj2Qint7z2msslIZD.AZVo-1714334407-1.0.1.1-GbnX3OvDegUYjVmtVsXzdEh4qtvYWRRvSWTS7MrHCDJXYcVKXBakyUZdaYgDCCp5AKvi7lo_dOHQy79sSQCgSQ; path=/; expires=Sun, 28-Apr-24 20:30:07 GMT; domain=.perplexity.ai; HttpOnly; Secure; SameSite=None\r\nserver: cloudflare\r\ncf-ray: 87b9a2f7edfac22b-VIE\r\n\r"
{
  "gptel": "response body",
  "timestamp": "2024-04-28 22:00:09"
}
data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 1, "total_tokens": 65}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A"}, "delta": {"role": "assistant", "content": "A"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 3, "total_tokens": 67}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical"}, "delta": {"role": "assistant", "content": " dynamical"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 5, "total_tokens": 69}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is"}, "delta": {"role": "assistant", "content": " system is"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 7, "total_tokens": 71}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple"}, "delta": {"role": "assistant", "content": " a tuple"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 9, "total_tokens": 73}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T"}, "delta": {"role": "assistant", "content": " $(T"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 11, "total_tokens": 75}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M"}, "delta": {"role": "assistant", "content": ",M"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 13, "total_tokens": 77}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi"}, "delta": {"role": "assistant", "content": ",\\Phi"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 15, "total_tokens": 79}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where"}, "delta": {"role": "assistant", "content": ")$, where"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 17, "total_tokens": 81}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T"}, "delta": {"role": "assistant", "content": " $T"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 19, "total_tokens": 83}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is"}, "delta": {"role": "assistant", "content": "$ is"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 21, "total_tokens": 85}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a mon"}, "delta": {"role": "assistant", "content": " a mon"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 23, "total_tokens": 87}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written"}, "delta": {"role": "assistant", "content": "oid written"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 25, "total_tokens": 89}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written addit"}, "delta": {"role": "assistant", "content": " addit"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 27, "total_tokens": 91}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively,"}, "delta": {"role": "assistant", "content": "ively,"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 29, "total_tokens": 93}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M"}, "delta": {"role": "assistant", "content": " $M"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 31, "total_tokens": 95}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is"}, "delta": {"role": "assistant", "content": "$ is"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 33, "total_tokens": 97}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non"}, "delta": {"role": "assistant", "content": " a non"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 35, "total_tokens": 99}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty"}, "delta": {"role": "assistant", "content": "-empty"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 37, "total_tokens": 101}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set,"}, "delta": {"role": "assistant", "content": " set,"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 39, "total_tokens": 103}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\"}, "delta": {"role": "assistant", "content": " and $\\"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 41, "total_tokens": 105}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$"}, "delta": {"role": "assistant", "content": "Phi$"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 43, "total_tokens": 107}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a"}, "delta": {"role": "assistant", "content": " is a"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 45, "total_tokens": 109}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from"}, "delta": {"role": "assistant", "content": " function from"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 47, "total_tokens": 111}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T"}, "delta": {"role": "assistant", "content": " $T"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 49, "total_tokens": 113}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times"}, "delta": {"role": "assistant", "content": " \\times"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 51, "total_tokens": 115}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$"}, "delta": {"role": "assistant", "content": " M$"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 53, "total_tokens": 117}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $"}, "delta": {"role": "assistant", "content": " to $"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 55, "total_tokens": 119}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$"}, "delta": {"role": "assistant", "content": "M$"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 59, "total_tokens": 123}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The"}, "delta": {"role": "assistant", "content": ". The"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 61, "total_tokens": 125}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\"}, "delta": {"role": "assistant", "content": " function $\\"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 63, "total_tokens": 127}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$"}, "delta": {"role": "assistant", "content": "Phi$"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 65, "total_tokens": 129}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called"}, "delta": {"role": "assistant", "content": " is called"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 67, "total_tokens": 131}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution"}, "delta": {"role": "assistant", "content": " the evolution"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 69, "total_tokens": 133}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function,"}, "delta": {"role": "assistant", "content": " function,"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 71, "total_tokens": 135}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating"}, "delta": {"role": "assistant", "content": " associating"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 73, "total_tokens": 137}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every"}, "delta": {"role": "assistant", "content": " to every"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 75, "total_tokens": 139}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in"}, "delta": {"role": "assistant", "content": " point in"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 77, "total_tokens": 141}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M"}, "delta": {"role": "assistant", "content": " $M"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 79, "total_tokens": 143}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a"}, "delta": {"role": "assistant", "content": "$ a"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 81, "total_tokens": 145}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image"}, "delta": {"role": "assistant", "content": " unique image"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 83, "total_tokens": 147}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by"}, "delta": {"role": "assistant", "content": " determined by"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 85, "total_tokens": 149}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution"}, "delta": {"role": "assistant", "content": " the evolution"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 87, "total_tokens": 151}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $"}, "delta": {"role": "assistant", "content": " parameter $"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 89, "total_tokens": 153}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$"}, "delta": {"role": "assistant", "content": "t$"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 91, "total_tokens": 155}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $"}, "delta": {"role": "assistant", "content": " in $"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 93, "total_tokens": 157}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$."}, "delta": {"role": "assistant", "content": "T$."}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 95, "total_tokens": 159}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M"}, "delta": {"role": "assistant", "content": " $M"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 97, "total_tokens": 161}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is"}, "delta": {"role": "assistant", "content": "$ is"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 99, "total_tokens": 163}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase"}, "delta": {"role": "assistant", "content": " the phase"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 101, "total_tokens": 165}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state"}, "delta": {"role": "assistant", "content": " or state"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 103, "total_tokens": 167}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space,"}, "delta": {"role": "assistant", "content": " space,"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 105, "total_tokens": 169}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $"}, "delta": {"role": "assistant", "content": " and $"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 107, "total_tokens": 171}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$"}, "delta": {"role": "assistant", "content": "x$"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 109, "total_tokens": 173}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an"}, "delta": {"role": "assistant", "content": " represents an"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 111, "total_tokens": 175}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state"}, "delta": {"role": "assistant", "content": " initial state"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 113, "total_tokens": 177}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the"}, "delta": {"role": "assistant", "content": " of the"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 117, "total_tokens": 181}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system."}, "delta": {"role": "assistant", "content": " system."}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 119, "total_tokens": 183}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\n"}, "delta": {"role": "assistant", "content": "\n\n"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 121, "total_tokens": 185}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example"}, "delta": {"role": "assistant", "content": "An example"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 123, "total_tokens": 187}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a"}, "delta": {"role": "assistant", "content": " of a"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 125, "total_tokens": 189}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical"}, "delta": {"role": "assistant", "content": " dynamical"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 127, "total_tokens": 191}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is"}, "delta": {"role": "assistant", "content": " system is"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 129, "total_tokens": 193}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Loren"}, "delta": {"role": "assistant", "content": " the Loren"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 131, "total_tokens": 195}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attract"}, "delta": {"role": "assistant", "content": "z attract"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 133, "total_tokens": 197}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor,"}, "delta": {"role": "assistant", "content": "or,"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 135, "total_tokens": 199}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set"}, "delta": {"role": "assistant", "content": " a set"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 137, "total_tokens": 201}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of cha"}, "delta": {"role": "assistant", "content": " of cha"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 139, "total_tokens": 203}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions"}, "delta": {"role": "assistant", "content": "otic solutions"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 141, "total_tokens": 205}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the"}, "delta": {"role": "assistant", "content": " of the"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 143, "total_tokens": 207}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz"}, "delta": {"role": "assistant", "content": " Lorenz"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 145, "total_tokens": 209}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system,"}, "delta": {"role": "assistant", "content": " system,"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 147, "total_tokens": 211}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is"}, "delta": {"role": "assistant", "content": " which is"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 149, "total_tokens": 213}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system"}, "delta": {"role": "assistant", "content": " a system"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 151, "total_tokens": 215}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary"}, "delta": {"role": "assistant", "content": " of ordinary"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 153, "total_tokens": 217}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations"}, "delta": {"role": "assistant", "content": " differential equations"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 155, "total_tokens": 219}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied"}, "delta": {"role": "assistant", "content": " first studied"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 157, "total_tokens": 221}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward"}, "delta": {"role": "assistant", "content": " by Edward"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 159, "total_tokens": 223}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton"}, "delta": {"role": "assistant", "content": " Norton"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 161, "total_tokens": 225}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz"}, "delta": {"role": "assistant", "content": " Lorenz"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 165, "total_tokens": 229}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The"}, "delta": {"role": "assistant", "content": ". The"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 167, "total_tokens": 231}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz"}, "delta": {"role": "assistant", "content": " Lorenz"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 169, "total_tokens": 233}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor"}, "delta": {"role": "assistant", "content": " attractor"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 171, "total_tokens": 235}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a"}, "delta": {"role": "assistant", "content": " is a"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 173, "total_tokens": 237}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal"}, "delta": {"role": "assistant", "content": " fractal"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 175, "total_tokens": 239}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is"}, "delta": {"role": "assistant", "content": " and is"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 177, "total_tokens": 241}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is notable for"}, "delta": {"role": "assistant", "content": " notable for"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 179, "total_tokens": 243}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is notable for its complexity"}, "delta": {"role": "assistant", "content": " its complexity"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 181, "total_tokens": 245}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is notable for its complexity and the"}, "delta": {"role": "assistant", "content": " and the"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 183, "total_tokens": 247}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is notable for its complexity and the sensitive dependence"}, "delta": {"role": "assistant", "content": " sensitive dependence"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 185, "total_tokens": 249}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is notable for its complexity and the sensitive dependence on initial"}, "delta": {"role": "assistant", "content": " on initial"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 187, "total_tokens": 251}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is notable for its complexity and the sensitive dependence on initial conditions,"}, "delta": {"role": "assistant", "content": " conditions,"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 189, "total_tokens": 253}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is notable for its complexity and the sensitive dependence on initial conditions, also known"}, "delta": {"role": "assistant", "content": " also known"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 191, "total_tokens": 255}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is notable for its complexity and the sensitive dependence on initial conditions, also known as the"}, "delta": {"role": "assistant", "content": " as the"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 193, "total_tokens": 257}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is notable for its complexity and the sensitive dependence on initial conditions, also known as the butterfly"}, "delta": {"role": "assistant", "content": " butterfly"}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 197, "total_tokens": 261}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is notable for its complexity and the sensitive dependence on initial conditions, also known as the butterfly effect."}, "delta": {"role": "assistant", "content": " effect."}}]}

data: {"id": "d9dbaff5-9551-43f1-b28d-75c5f6e74ff8", "model": "sonar-medium-online", "created": 4154584, "usage": {"prompt_tokens": 64, "completion_tokens": 198, "total_tokens": 262}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": "stop", "message": {"role": "assistant", "content": "A dynamical system is a tuple $(T,M,\\Phi)$, where $T$ is a monoid written additively, $M$ is a non-empty set, and $\\Phi$ is a function from $T \\times M$ to $M$. The function $\\Phi$ is called the evolution function, associating to every point in $M$ a unique image determined by the evolution parameter $t$ in $T$. $M$ is the phase or state space, and $x$ represents an initial state of the system.\n\nAn example of a dynamical system is the Lorenz attractor, a set of chaotic solutions of the Lorenz system, which is a system of ordinary differential equations first studied by Edward Norton Lorenz. The Lorenz attractor is a fractal and is notable for its complexity and the sensitive dependence on initial conditions, also known as the butterfly effect."}, "delta": {"role": "assistant", "content": ""}}]}

@davidpirro
Copy link
Author

davidpirro commented Apr 28, 2024

{
  "gptel": "request headers",
  "timestamp": "2024-04-28 22:05:44"
}
{
  "Content-Type": "application/json",
  "Authorization": "Bearer XXXX",
  "Referer": "https://www.perplexity.ai/"
}
{
  "gptel": "request body",
  "timestamp": "2024-04-28 22:05:44"
}
{
  "model": "sonar-medium-online",
  "messages": [
    {
      "role": "system",
      "content": "You are a large language model living in Emacs and a helpful assistant. Respond concisely."
    },
    {
      "role": "user",
      "content": "What is a lagrange point?"
    }
  ],
  "stream": true,
  "temperature": 1.0
}
{"gptel": "request Curl command", "timestamp": "2024-04-28 22:05:44"}
curl \
--disable \
--location \
--silent \
--compressed \
-XPOST \
-y300 \
-Y1 \
-D- \
-w\(43f06bb252948a17c7d9d4e55ecfc133\ .\ \%\{size_header\}\) \
-d\{\"model\"\:\"sonar-medium-online\"\,\"messages\"\:\[\{\"role\"\:\"system\"\,\"content\"\:\"You\ are\ a\ large\ language\ model\ living\ in\ Emacs\ and\ a\ helpful\ assistant.\ Respond\ concisely.\"\}\,\{\"role\"\:\"user\"\,\"content\"\:\"What\ is\ a\ lagrange\ point\?\"\}\]\,\"stream\"\:true\,\"temperature\"\:1.0\} \
-HContent-Type\:\ application/json \
-HAuthorization\:\ Bearer\ XXXX \
-HReferer\:\ https\://www.perplexity.ai/ \
https\://api.perplexity.ai/chat/completions
{
  "gptel": "response headers",
  "timestamp": "2024-04-28 22:05:46"
}
"HTTP/2 200 \r\ndate: Sun, 28 Apr 2024 20:05:45 GMT\r\ncontent-type: text/event-stream; charset=utf-8\r\ncache-control: no-cache\r\ncf-cache-status: DYNAMIC\r\nset-cookie: __cf_bm=FlRp.uIwzoR6Ce_UeZl1ZtaEktrizpH3YutUlDxy4WQ-1714334745-1.0.1.1-jjU6sQ1mWHm.iLLAOJui3._9WRSjVZ64SVVtuaDDYT3kTYEsdpSVlI0aG98.JFkzuLtTaqR0sZbDeUcoG2y0jw; path=/; expires=Sun, 28-Apr-24 20:35:45 GMT; domain=.perplexity.ai; HttpOnly; Secure; SameSite=None\r\nserver: cloudflare\r\ncf-ray: 87b9ab38da41c251-VIE\r\n\r"
{
  "gptel": "response body",
  "timestamp": "2024-04-28 22:05:46"
}
data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 1, "total_tokens": 59}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A"}, "delta": {"role": "assistant", "content": "A"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 3, "total_tokens": 61}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange"}, "delta": {"role": "assistant", "content": " Lagrange"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 5, "total_tokens": 63}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is"}, "delta": {"role": "assistant", "content": " point is"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 7, "total_tokens": 65}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region"}, "delta": {"role": "assistant", "content": " a region"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 9, "total_tokens": 67}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space"}, "delta": {"role": "assistant", "content": " in space"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 11, "total_tokens": 69}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the"}, "delta": {"role": "assistant", "content": " where the"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 13, "total_tokens": 71}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational"}, "delta": {"role": "assistant", "content": " gravitational"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 15, "total_tokens": 73}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of"}, "delta": {"role": "assistant", "content": " forces of"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 17, "total_tokens": 75}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large"}, "delta": {"role": "assistant", "content": " two large"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 19, "total_tokens": 77}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and"}, "delta": {"role": "assistant", "content": " bodies and"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 21, "total_tokens": 79}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the cent"}, "delta": {"role": "assistant", "content": " the cent"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 23, "total_tokens": 81}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifug"}, "delta": {"role": "assistant", "content": "rifug"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 25, "total_tokens": 83}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force"}, "delta": {"role": "assistant", "content": "al force"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 27, "total_tokens": 85}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each"}, "delta": {"role": "assistant", "content": " balance each"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 29, "total_tokens": 87}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other,"}, "delta": {"role": "assistant", "content": " other,"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 31, "total_tokens": 89}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller"}, "delta": {"role": "assistant", "content": " allowing smaller"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 33, "total_tokens": 91}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to"}, "delta": {"role": "assistant", "content": " objects to"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 35, "total_tokens": 93}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a"}, "delta": {"role": "assistant", "content": " maintain a"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 37, "total_tokens": 95}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position"}, "delta": {"role": "assistant", "content": " stable position"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 39, "total_tokens": 97}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to"}, "delta": {"role": "assistant", "content": " relative to"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 41, "total_tokens": 99}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger"}, "delta": {"role": "assistant", "content": " the larger"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 43, "total_tokens": 101}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies."}, "delta": {"role": "assistant", "content": " bodies."}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 45, "total_tokens": 103}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are"}, "delta": {"role": "assistant", "content": " There are"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 47, "total_tokens": 105}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lag"}, "delta": {"role": "assistant", "content": " five Lag"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 49, "total_tokens": 107}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points"}, "delta": {"role": "assistant", "content": "range points"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 51, "total_tokens": 109}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L"}, "delta": {"role": "assistant", "content": " (L"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 53, "total_tokens": 111}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to"}, "delta": {"role": "assistant", "content": "1 to"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 55, "total_tokens": 113}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5"}, "delta": {"role": "assistant", "content": " L5"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 57, "total_tokens": 115}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in"}, "delta": {"role": "assistant", "content": ") in"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 59, "total_tokens": 117}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two"}, "delta": {"role": "assistant", "content": " any two"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 61, "total_tokens": 119}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body"}, "delta": {"role": "assistant", "content": "-body"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 63, "total_tokens": 121}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system,"}, "delta": {"role": "assistant", "content": " system,"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 65, "total_tokens": 123}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L"}, "delta": {"role": "assistant", "content": " with L"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 67, "total_tokens": 125}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1,"}, "delta": {"role": "assistant", "content": "1,"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 69, "total_tokens": 127}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2"}, "delta": {"role": "assistant", "content": " L2"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 71, "total_tokens": 129}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and"}, "delta": {"role": "assistant", "content": ", and"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 73, "total_tokens": 131}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3"}, "delta": {"role": "assistant", "content": " L3"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 75, "total_tokens": 133}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along"}, "delta": {"role": "assistant", "content": " located along"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 77, "total_tokens": 135}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line"}, "delta": {"role": "assistant", "content": " the line"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 79, "total_tokens": 137}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the"}, "delta": {"role": "assistant", "content": " connecting the"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 81, "total_tokens": 139}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies"}, "delta": {"role": "assistant", "content": " two bodies"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 83, "total_tokens": 141}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and"}, "delta": {"role": "assistant", "content": ", and"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 85, "total_tokens": 143}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4"}, "delta": {"role": "assistant", "content": " L4"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 87, "total_tokens": 145}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L"}, "delta": {"role": "assistant", "content": " and L"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 89, "total_tokens": 147}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming"}, "delta": {"role": "assistant", "content": "5 forming"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 91, "total_tokens": 149}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices"}, "delta": {"role": "assistant", "content": " the vertices"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 93, "total_tokens": 151}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an"}, "delta": {"role": "assistant", "content": " of an"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 95, "total_tokens": 153}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equil"}, "delta": {"role": "assistant", "content": " equil"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 97, "total_tokens": 155}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle"}, "delta": {"role": "assistant", "content": "ateral triangle"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 99, "total_tokens": 157}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the"}, "delta": {"role": "assistant", "content": " with the"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 101, "total_tokens": 159}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies"}, "delta": {"role": "assistant", "content": " two bodies"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 103, "total_tokens": 161}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its"}, "delta": {"role": "assistant", "content": " at its"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 105, "total_tokens": 163}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base."}, "delta": {"role": "assistant", "content": " base."}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 107, "total_tokens": 165}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points"}, "delta": {"role": "assistant", "content": " These points"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 109, "total_tokens": 167}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful"}, "delta": {"role": "assistant", "content": " are useful"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 111, "total_tokens": 169}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for space"}, "delta": {"role": "assistant", "content": " for space"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 113, "total_tokens": 171}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft,"}, "delta": {"role": "assistant", "content": "craft,"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 115, "total_tokens": 173}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they"}, "delta": {"role": "assistant", "content": " as they"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 117, "total_tokens": 175}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal"}, "delta": {"role": "assistant", "content": " require minimal"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 119, "total_tokens": 177}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for"}, "delta": {"role": "assistant", "content": " fuel for"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 121, "total_tokens": 179}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-"}, "delta": {"role": "assistant", "content": " station-"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 123, "total_tokens": 181}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping,"}, "delta": {"role": "assistant", "content": "keeping,"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 125, "total_tokens": 183}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping, and several"}, "delta": {"role": "assistant", "content": " and several"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 127, "total_tokens": 185}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping, and several space missions"}, "delta": {"role": "assistant", "content": " space missions"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 129, "total_tokens": 187}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping, and several space missions, like"}, "delta": {"role": "assistant", "content": ", like"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 131, "total_tokens": 189}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping, and several space missions, like the James"}, "delta": {"role": "assistant", "content": " the James"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 133, "total_tokens": 191}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping, and several space missions, like the James Webb"}, "delta": {"role": "assistant", "content": " Webb"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 135, "total_tokens": 193}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping, and several space missions, like the James Webb Space T"}, "delta": {"role": "assistant", "content": " Space T"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 137, "total_tokens": 195}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping, and several space missions, like the James Webb Space Telescope"}, "delta": {"role": "assistant", "content": "elescope"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 139, "total_tokens": 197}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping, and several space missions, like the James Webb Space Telescope, utilize"}, "delta": {"role": "assistant", "content": ", utilize"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 141, "total_tokens": 199}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping, and several space missions, like the James Webb Space Telescope, utilize them for"}, "delta": {"role": "assistant", "content": " them for"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 143, "total_tokens": 201}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": null, "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping, and several space missions, like the James Webb Space Telescope, utilize them for various purposes"}, "delta": {"role": "assistant", "content": " various purposes"}}]}

data: {"id": "8b943092-97db-4e98-a7dd-14273994c3c0", "model": "sonar-medium-online", "created": 4154922, "usage": {"prompt_tokens": 58, "completion_tokens": 151, "total_tokens": 209}, "object": "chat.completion", "choices": [{"index": 0, "finish_reason": "stop", "message": {"role": "assistant", "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies and the centrifugal force balance each other, allowing smaller objects to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 located along the line connecting the two bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two bodies at its base. These points are useful for spacecraft, as they require minimal fuel for station-keeping, and several space missions, like the James Webb Space Telescope, utilize them for various purposes."}, "delta": {"role": "assistant", "content": "."}}]}

@davidpirro
Copy link
Author

Done. Hope that helps.

@karthink
Copy link
Owner

Thanks. There is no citation field in the response, so that tip was probably an LLM hallucination.

Could you try with gptel-stream set to nil as well?

@davidpirro
Copy link
Author

{
  "gptel": "request headers",
  "timestamp": "2024-04-28 22:13:43"
}
{
  "Content-Type": "application/json",
  "Authorization": "Bearer XXXX",
  "Referer": "https://www.perplexity.ai/"
}
{
  "gptel": "request body",
  "timestamp": "2024-04-28 22:13:43"
}
{
  "model": "sonar-medium-online",
  "messages": [
    {
      "role": "system",
      "content": "You are a large language model living in Emacs and a helpful assistant. Respond concisely."
    },
    {
      "role": "user",
      "content": "What is a lagrange point?"
    }
  ],
  "stream": false,
  "temperature": 1.0
}
{"gptel": "request Curl command", "timestamp": "2024-04-28 22:13:43"}
curl \
--disable \
--location \
--silent \
--compressed \
-XPOST \
-y300 \
-Y1 \
-D- \
-w\(3be32f2bffa60e89da851721ccd9c49e\ .\ \%\{size_header\}\) \
-d\{\"model\"\:\"sonar-medium-online\"\,\"messages\"\:\[\{\"role\"\:\"system\"\,\"content\"\:\"You\ are\ a\ large\ language\ model\ living\ in\ Emacs\ and\ a\ helpful\ assistant.\ Respond\ concisely.\"\}\,\{\"role\"\:\"user\"\,\"content\"\:\"What\ is\ a\ lagrange\ point\?\"\}\]\,\"stream\"\:false\,\"temperature\"\:1.0\} \
-HContent-Type\:\ application/json \
-HAuthorization\:\ Bearer\ XXXX \
-HReferer\:\ https\://www.perplexity.ai/ \
https\://api.perplexity.ai/chat/completions
{
  "gptel": "response headers",
  "timestamp": "2024-04-28 22:13:45"
}
"HTTP/2 200 \r\ndate: Sun, 28 Apr 2024 20:13:45 GMT\r\ncontent-type: application/json\r\ncf-cache-status: DYNAMIC\r\nset-cookie: __cf_bm=niVDTXReTzpbnXenCydPB2nA_h0Y_ZbUEUgp4J9kZ4A-1714335225-1.0.1.1-NVV0PISNSlqzamS__BLmGMCdZWuMLs86RHfSIhGr8Df4XcDkqz3rqb6CITRmat.msGfhj5p9Qn9nuv2sVtaIeA; path=/; expires=Sun, 28-Apr-24 20:43:45 GMT; domain=.perplexity.ai; HttpOnly; Secure; SameSite=None\r\nserver: cloudflare\r\ncf-ray: 87b9b6e8bbb6c2a0-VIE\r\ncontent-encoding: gzip\r\n\r"
{
  "gptel": "response body",
  "timestamp": "2024-04-28 22:13:45"
}
{
  "id": "64ab0c9d-c2d9-4376-9366-ae6886943156",
  "model": "sonar-medium-online",
  "created": 8690520,
  "usage": {
    "prompt_tokens": 58,
    "completion_tokens": 162,
    "total_tokens": 220
  },
  "object": "chat.completion",
  "choices": [
    {
      "index": 0,
      "finish_reason": "stop",
      "message": {
        "role": "assistant",
        "content": "A Lagrange point is a region in space where the gravitational forces of two large bodies, like a planet and a star, and the centrifugal force of a smaller body, like a spacecraft, balance each other, allowing the smaller body to maintain a stable position relative to the larger bodies. There are five Lagrange points (L1 to L5) in any two-body system, with L1, L2, and L3 lying along the line connecting the two large bodies, and L4 and L5 forming the vertices of an equilateral triangle with the two large bodies at its base. The L1 and L2 points are commonly used for space missions due to their stability and ease of access."
      },
      "delta": {
        "role": "assistant",
        "content": ""
      }
    }
  ]
}

Here

@karthink
Copy link
Owner

karthink commented Apr 28, 2024

Thanks. Again, I don't see any citations in the JSON response or in the response content. I think we can consider the LLM response a hallucination.

I'll leave this issue open. If someone finds a way to access the citations from the API, they can let us know.

@karthink karthink added the enhancement New feature or request label Apr 28, 2024
@karthink
Copy link
Owner

karthink commented Apr 28, 2024

It could be that citations are only generated for the pplx-7b-online and pplx-70b-online models, so it might be worth checking if you used one of these models for the tests above.

(My understanding is that these are referred to as the sonar-small-online and sonar-medium-online models in API calls.)

@davidpirro
Copy link
Author

as far as I see the pplx-7b-online and the pplx-70b-online models are not accessible anymore. Only the sonar ones.

In any case, I've read that citations are not being sent over the API calls, yet. It seems they are working to will include them.

I'll let you know as soon as I know more.

@karthink
Copy link
Owner

Sure, I'll leave the issue open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants