Create unit tests for the PromptCodeBlockExtractor

Created on 19 November 2024, about 1 month ago

Problem/Motivation

Currently there is no testing that the output of the PromptCodeBlockExtractor service is actually correct, we need to have extensive testing with multiple different strings being tested.

See the testing for PromptJsonDecoderTest for ideas.

Steps to reproduce

Proposed resolution

Add tests and test things like having ```html inside a text, having it start with
Also do the same for yaml, json, css
Test it with streaming

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

AI Core module

Created by

🇩🇪Germany marcus_johansson

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024