This pull request involves changes across several files, primarily aimed at transitioning from newline-delimited JSON (NDJSON) to JSON Lines (jsonl) format. This includes changes in the Content-Type header in HTTP responses, modifications in import statements, and updates in the documentation.
spec/models.tsp: The contentType in the AIChatCompletionDelta model has been updated to application/jsonl.
Changes related to import statements:
sdk/js/packages/client/src/client.ts: The import statement for getAsyncIterable has been changed to import from ./util/jsonl.js instead of ./util/ndjson.js.
spec/README.md: The documentation has been updated to reflect the change from NDJSON to jsonl in the HTTP response format and Content-Type header. [1][2]
Closing #57
This pull request involves changes across several files, primarily aimed at transitioning from newline-delimited JSON (NDJSON) to JSON Lines (jsonl) format. This includes changes in the
Content-Type
header in HTTP responses, modifications in import statements, and updates in the documentation.Changes related to
Content-Type
:samples/backend/csharp/Controllers/ChatController.cs
: TheContent-Type
header in the HTTP response of theProcessStreamingMessage
method has been changed fromapplication/x-ndjson
toapplication/jsonl
.samples/backend/js/expressjs/src/routes/chat.ts
: TheContent-Type
of the response in thechat.post
method has been updated toapplication/jsonl
.spec/models.tsp
: ThecontentType
in theAIChatCompletionDelta
model has been updated toapplication/jsonl
.Changes related to import statements:
sdk/js/packages/client/src/client.ts
: The import statement forgetAsyncIterable
has been changed to import from./util/jsonl.js
instead of./util/ndjson.js
.sdk/js/packages/client/test/util/ndjson.shared.test.ts
: The import statement forgetAsyncIterable
has been updated to./util/jsonl.js
.Changes in documentation:
spec/README.md
: The documentation has been updated to reflect the change from NDJSON to jsonl in the HTTP response format andContent-Type
header. [1] [2]