This pull request primarily involves the removal of the AIChatFinishReason type and its usages across multiple files. This type was previously used to denote the reason for the completion of a chat, but it seems that this functionality is no longer needed.
Here are the most important changes:
Removal of AIChatFinishReason from exports and imports:
This pull request primarily involves the removal of the
AIChatFinishReason
type and its usages across multiple files. This type was previously used to denote the reason for the completion of a chat, but it seems that this functionality is no longer needed.Here are the most important changes:
Removal of
AIChatFinishReason
from exports and imports:samples/backend/js/expressjs/src/routes/chat.ts
: Removed the import ofAIChatFinishReason
.sdk/js/packages/client/src/index.ts
: Removed the export ofAIChatFinishReason
.sdk/js/packages/client/src/model/index.ts
: Removed the export ofAIChatFinishReason
.Removal of
AIChatFinishReason
from type definitions and interfaces:sdk/js/packages/client/src/model/model.ts
: Removed theAIChatFinishReason
type definition and its usage inAIChatCompletion
andAIChatCompletionDelta
interfaces. [1] [2]spec/models.tsp
: Removed theAIChatFinishReason
enum and its usage inAIChatCompletion
andAIChatCompletionDelta
models. [1] [2] [3]Removal of
AIChatFinishReason
from function implementations:samples/backend/js/expressjs/src/routes/chat.ts
: Removed thefinishReason
field from theAIChatCompletion
object in two different post endpoints. [1] [2]These changes simplify the codebase by removing an unnecessary type and its usages.