Skip to content

feat: add chat streaming helpers#190

Merged
sarahcstringer merged 4 commits intonextfrom
sam/add-streaming-helpers
Apr 2, 2025
Merged

feat: add chat streaming helpers#190
sarahcstringer merged 4 commits intonextfrom
sam/add-streaming-helpers

Conversation

@stainless-app
Copy link
Copy Markdown
Contributor

@stainless-app stainless-app Bot commented Mar 12, 2025

No description provided.

@stainless-app stainless-app Bot marked this pull request as ready for review March 12, 2025 18:01
Comment thread src/error.ts Outdated
Comment on lines -132 to -142
export class LengthFinishReasonError extends WriterError {
constructor() {
super(`Could not parse response content as the length limit was reached`);
}
}

export class ContentFilterFinishReasonError extends WriterError {
constructor() {
super(`Could not parse response content as the request was rejected by the content filter`);
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sarahcstringer Those 2 errors will need to be moved to src/core/error.ts

@sarahcstringer sarahcstringer merged commit fb61df1 into next Apr 2, 2025
3 checks passed
@stainless-app stainless-app Bot mentioned this pull request Apr 2, 2025
sarahcstringer added a commit that referenced this pull request Apr 2, 2025
* docs: update URLs from stainlessapi.com to stainless.com (#176)

More details at https://www.stainless.com/changelog/stainless-com

* chore(client): only accept standard types for file uploads (#178)

* chore(internal): fix tests failing on node v18 (#179)

* chore(internal): constrain synckit dev dependency (#180)

* fix(client): fix TypeError with undefined File (#181)

* fix(internal): clean up undefined File test (#182)

* fix(tests): manually reset node:buffer File (#183)

* chore(types): improved go to definition on fetchOptions (#184)

* chore(docs): improve docs for withResponse/asResponse (#185)

* feat: add SKIP_BREW env var to ./scripts/bootstrap (#187)

* feat(client): accept RFC6838 JSON content types (#188)

* docs(api): updates to API spec (#189)

* chore(internal): remove extra empty newlines (#191)

* fix(exports): ensure resource imports don't require /index (#192)

* fix(internal): add mts file + crypto shim types (#193)

* chore(internal): minor client file refactoring (#194)

* chore(exports): cleaner resource index imports (#195)

* chore(exports): stop using path fallbacks (#196)

* chore(docs): fix typo (#197)

* chore(docs): migration guide re-ordering (#198)

* docs(api): updates to API spec (#199)

* chore(internal): Fix README samples. (#200)

* feat(api): Add Vision endpoint. (#202)

* feat(api): Add Vision endpoint. (#203)

* docs(api): updates to API spec (#204)

* codegen metadata

* chore(client): more accurate streaming errors (#205)

* chore(internal): codegen related update (#206)

* docs(api): updates to API spec (#207)

* feat: add chat streaming helpers (#190)

* feat: add streaming helpers

* fix missing  errors

* lint

---------

Co-authored-by: Samuel El-Borai <sam@elborai.me>
Co-authored-by: Sarah Deaton <sarahcstringer@gmail.com>
Co-authored-by: Reid <reid@stainless.com>

* release: 2.1.0-rc.1

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Co-authored-by: Samuel El-Borai <sam@elborai.me>
Co-authored-by: Sarah Deaton <sarahcstringer@gmail.com>
Co-authored-by: Reid <reid@stainless.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants