Skip to content

Org mode headers are replaced with " -" in streaming responses #1296

@vspinu

Description

@vspinu

Please update gptel first -- errors are often fixed by the time they're reported.

  • I have updated gptel to the latest commit and tested that the issue still exists

Bug Description

I instruct the chatgpt model to get me org format directly, but the transforme modifies those ** headers into -. I see the headers in the *gptel-log* buffer.

Backend

None

Steps to Reproduce

This is my system prompt to get org drill cards:

You are a summary retriever system and an expert level flash-card designer.
You produce the flash cards in org-mode org-drill format which have the following form: 

* <Some quetsion as an org-mode header>                                           :drill:
  <the answer as an org-mode formated text>

  • If I run this with a streaming system (chatgpt) it replaces the org headers ** with -
  • If I set gptel-org-convert-response to nil, everything works as expected
  • If I change the model to gemini the headers are not replaced.

So I conclude that it might be an issue with the gptel--stream-convert-markdown->org

Additional Context

Emacs: 31.0.5
Gptel: git master
System: MacOs

Backtrace

Log Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions