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

Remove unnecessary org mode headers and properties in prompts to send #503

Open
aGolduck opened this issue Dec 11, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@aGolduck
Copy link

Org mode headers and properties are sent in promts, they seemed unnecessary, for example, this is a request body

{
  "model": "gpt-4",
  "messages": [
    {
      "role": "system",
      "content": "You are a large language model living in Emacs and a helpful assistant."
    },
    {
      "role": "user",
      "content": "* another test\n:PROPERTIES:\n:GPTEL_TOPIC: another-test\n:END:\n\n** this is a test"
    }
  ],
  "stream": true,
  "temperature": 1.0
}
@aGolduck aGolduck added the enhancement New feature or request label Dec 11, 2024
@aGolduck aGolduck changed the title Remove unnecessary org mode headers and properties in prompts sent Remove unnecessary org mode headers and properties in prompts to send Dec 11, 2024
@karthink
Copy link
Owner

karthink commented Dec 19, 2024

Thanks for the suggestion -- this is a frequent one! See #141 and many discussions in the discussions page.

This is a low-medium priority issue for me right now as it's basically harmless, except for the negligible token cost of few dozen extra tokens. There are several semi-broken things I need to fix first -- I'll get to this eventually.

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