-
- Downloads
Issue #3478167: Add a global JSON decoder for both streaming and none streaming responses
parent
546cfc55
No related branches found
No related tags found
Showing
- ai.services.yml 2 additions, 0 deletionsai.services.yml
- src/OperationType/Chat/ReplayedChatMessageIterator.php 41 additions, 0 deletionssrc/OperationType/Chat/ReplayedChatMessageIterator.php
- src/Service/PromptJsonDecoder/PromptJsonDecoder.php 128 additions, 0 deletionssrc/Service/PromptJsonDecoder/PromptJsonDecoder.php
- src/Service/PromptJsonDecoder/PromptJsonDecoderInterface.php 31 additions, 0 deletionssrc/Service/PromptJsonDecoder/PromptJsonDecoderInterface.php
- tests/assets/test-prompts/prompt-json-decoder/codeblock_no_json.yaml 6 additions, 0 deletions...s/test-prompts/prompt-json-decoder/codeblock_no_json.yaml
- tests/assets/test-prompts/prompt-json-decoder/escaped_json_quote.yaml 4 additions, 0 deletions.../test-prompts/prompt-json-decoder/escaped_json_quote.yaml
- tests/assets/test-prompts/prompt-json-decoder/json_in_free_text.yaml 4 additions, 0 deletions...s/test-prompts/prompt-json-decoder/json_in_free_text.yaml
- tests/assets/test-prompts/prompt-json-decoder/json_quote.yaml 4 additions, 0 deletions...s/assets/test-prompts/prompt-json-decoder/json_quote.yaml
- tests/assets/test-prompts/prompt-json-decoder/json_with_newlines_in_it.yaml 12 additions, 0 deletions...prompts/prompt-json-decoder/json_with_newlines_in_it.yaml
- tests/assets/test-prompts/prompt-json-decoder/just_text.yaml 11 additions, 0 deletionstests/assets/test-prompts/prompt-json-decoder/just_text.yaml
- tests/assets/test-prompts/prompt-json-decoder/placement_test.yaml 20 additions, 0 deletions...sets/test-prompts/prompt-json-decoder/placement_test.yaml
- tests/assets/test-prompts/prompt-json-decoder/text_then_json.yaml 7 additions, 0 deletions...sets/test-prompts/prompt-json-decoder/text_then_json.yaml
- tests/assets/test-prompts/prompt-json-decoder/text_with_broken_json.yaml 8 additions, 0 deletions...st-prompts/prompt-json-decoder/text_with_broken_json.yaml
- tests/src/Mock/MockIterator.php 36 additions, 0 deletionstests/src/Mock/MockIterator.php
- tests/src/Mock/MockStreamedChatIterator.php 43 additions, 0 deletionstests/src/Mock/MockStreamedChatIterator.php
- tests/src/Unit/Service/PromptJsonDecoder/PromptJsonDecoderTest.php 86 additions, 0 deletions.../Unit/Service/PromptJsonDecoder/PromptJsonDecoderTest.php
Loading
Please register or sign in to comment