v0.0.6beta
Added
- Rest API interface to the core logic. Find the specification here.
Fixed
- OpenAI's prediction parsing and deserialization when the graph's JSON is surrounded by text.
Example
GIVEN: The OpenAI chat response's content below
Here's the C4 diagram for a Python web server reading from an external Postgres database:
{ "title": "Python Web Server Reading from External Postgres Database", "nodes": [ {"id": "0", "label": "Web Server", "technology": "Python"}, {"id": "1", "label": "Postgres", "technology": "Postgres", "external": true, "is_database": true} ], "links": [ {"from": "0", "to": "1", "label": "reads from Postgres", "technology": "TCP"} ], "footer": "C4 Model" }
The diagram shows two nodes: a Python web server and an external Postgres database. The web server reads data from the Postgres database over TCP.
WHEN: apply new deserialization and parsing logic
THEN: get the following graph definition:
{"title":"Python Web Server Reading from External Postgres Database","nodes":[{"id":"0","label":"Web Server","technology":"Python"},{"id":"1","label":"Postgres","technology":"Postgres","external":true,"is_database":true}],"links":[{"from":"0","to":"1","label":"reads from Postgres","technology":"TCP"}],"footer":"C4 Model"}