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

Failed to export links within the answers #259

Open
evianzhow opened this issue Sep 18, 2024 · 2 comments
Open

Failed to export links within the answers #259

evianzhow opened this issue Sep 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@evianzhow
Copy link

In the newer version of ChatGPT web, the affiliated link within the answer looks like this:
image
Using the latest version of this script, HTML and Markdown will output these links as '【8†source】【10†source】.' without actual link URL, also, unclickable.
image
Further investigation appreciated!

@pionxzh
Copy link
Owner

pionxzh commented Sep 18, 2024

I call this thing footnote, I'm not sure if it's still appropriate. I added support for it at #173 (comment). I think the format of it has been changed.

Thanks for the report. I will arrange a time to fix it.

@pionxzh pionxzh added the bug Something isn't working label Sep 18, 2024
@moonmd
Copy link

moonmd commented Dec 5, 2024

Notes on the new format for links to references

Unicode:  Bytes:    String:
U+E200:   EE 88 80  "\uE200"
U+E201:   EE 88 81  "\uE201"
U+E202:   EE 88 82  "\uE202"
U+E203:   EE 88 83  "\uE203"
U+E204:   EE 88 84  "\uE204"

U+E203: Marks the start of a block of text.
U+E204: Marks the end of the block of text.

Citation format:
E200{cite}E202{turn0search3}E201

A way to quickly clean up the text is to remove regex:

  • \uE203
  • \uE204
  • \uE200.*\uE202.*\uE201

Sample of Embedded Characters  Translated

\uE203ChatGPT offers several features to help users manage their conversations effectively:\uE204

  1. Chat History Search

\uE203Users can search through their chat history to quickly locate past conversations.\uE204 \uE203This feature is accessible via the web interface by clicking the magnifying glass icon in the left sidebar or using the shortcut Ctrl+K (PC) or Cmd+K (Mac).\uE204 \uE203Typing keywords or phrases will display relevant past interactions.\uE204 \uE200cite\uE202turn0search3\uE201

  1. Memory Feature

\uE203ChatGPT's memory function allows it to remember details across sessions, such as your name, preferences, and past interactions, to provide a more personalized experience.\uE204 \uE203Users can manage what ChatGPT remembers by adding or deleting memories within the settings.\uE204 \uE203This feature is gradually being rolled out and may not be available to all users yet.\uE204 \uE200cite\uE202turn0search23\uE201

JSON  Translated

        "content": {
          "content_type": "text",
          "parts": [
            "\uE203ChatGPT offers several features to help users ..."
          ]
        },
        "metadata": {
          "content_references": [
            {
              "matched_text": "\uE200cite\uE202turn0search3\uE201",
              "start_idx": 434,
              "end_idx": 453,
              "alt": "([OpenAI Help Center](https://help.openai.com/en/articles/10056348-how-do-i-search-my-chat-history-in-chatgpt?utm_source=chatgpt.com))",
              "prompt_text": null,
              "type": "webpage",
              "title": "How do I search my chat history in ChatGPT? - OpenAI Help Center",
              "url": "https://help.openai.com/en/articles/10056348-how-do-i-search-my-chat-history-in-chatgpt?utm_source=chatgpt.com",
              "pub_date": null,
              "snippet": "If you’re using ChatGPT on the web, you now have the ability to search through your chat history quickly and efficiently. This feature is designed to help you find past conversations with ease, whether you're referencing specific details or picking up a conversation where you left off.",
              "attributions": null,
              "attributions_debug": null,
              "attribution": "OpenAI Help Center"
            },
            {
              "matched_text": "\uE200cite\uE202turn0search23\uE201",
              "start_idx": 833,
              "end_idx": 853,
              "alt": "([OpenAI](https://openai.com/index/memory-and-new-controls-for-chatgpt/?utm_source=chatgpt.com))",
              "prompt_text": null,
              "type": "webpage",
              "title": "Memory and new controls for ChatGPT - OpenAI",
              "url": "https://openai.com/index/memory-and-new-controls-for-chatgpt/?utm_source=chatgpt.com",
              "pub_date": 1707782400,
              "snippet": "For information shared via conversations, ChatGPT can remember relevant details for you. Evolving our privacy and safety standards. Memory brings additional privacy and safety considerations, such as what type of information should be remembered and how it’s used. We’re taking steps to assess and mitigate biases, and steer ChatGPT away from ...",
              "attributions": null,
              "attributions_debug": null,
              "attribution": "OpenAI"
            },
           ...
          ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants