Open weavermarquez opened 3 days ago
The system message is not being sent twice, as you can see from the :system
parameter of the request. gptel sends the buffer contents as-is, which includes the system message since it's been written to the buffer.
So the question is if all :PROPERTIES:
blocks should be stripped when constructing the user prompt. See prior discussion in #141 (specifically this comment and my response) and one possible workaround based on #325.
As indicated in the dry runs, the system message is included twice when querying from a gptel buffer turned org file.
Expected behaviour:
The
gptel
:PROPERTIES:
values, especiallyGPTEL_SYSTEM
, should not be included in the user prompt.Replication Steps:
gptel--system-message
is set.*Claude*
PROPERTIES
drawer.gptel-menu
, Dry Run > Inspect query (Lisp) [1] or (JSON) [2]Examples
[1] Lisp
[2] JSON