Duo Chat Identifier: Request and parse full JSON for issue/epic readers
Overview
When perform an epic/issue reader request, we end the prompt with partial json assuming that the model will append the necessary data with the expected format.
Anthropic responds correctly, but other models are not so reliable (they either add redundant characters, like " in the beginning or respond with full json data).
The current logic was introduced when claude-1.2 was around, maybe the current LLM versions can reliably return the data either in JSON or markdown-json format? That would simplify the post-processing logic.
Proposal
- Remove
...json .. { ... "ResourceIdentifierType": "
suffix - Expect either JSON or markdown-json response
Edited by Igor Drozdov