Hello everyone,
I am currently creating a custom GPT that can manipulate my flashcards. I have created an action that includes a POST request. This request takes an object in JSON format as its body.
Here is the expected object:
{
"content": "What is the capital of France?\n\n**Answer:** Paris",
"deck-id": "default-deck-id",
"template-id": "cpyLWrBm"
}
The object constructed by GPT:
{
"content": "What is the capital of France?\n\n**Answer:** Paris",
"deck__id": "default-deck-id",
"template__id": "cpyLWrBm"
}
It transforms the - in my property names described in my OpenAPI 3.1.0 schema to __.
I tried to prevent this by modifying the prompt of my GPTs, but it didn’t work.
As a last resort, I could create a proxy that replaces __
in its request with -
.
Do you have any other ideas to solve this problem?
Thanks and have a nice day,