Commit Graph
35 Commits
Author SHA1 Message Date
藍+85CD d9a8b7bba4 chore(deps): bump version, follow upstream changes (#247)
* chore(deps): bump version, follow upstream changes

* chore: lint code

* chore(deps): remove dotenv

* fix: install

* ci: unlock node version
2025-12-29 20:32:24 +08:00
Acbox Liu daa2231902 feat: streamTranscription (#231)
* feat(stream-transcription): add basic request types

* refactor(shared): move delayed-promise to shared

* feat(stream-transcription): implement request fuction

* fix: no stream

* fix(stream-transcription): SSE

* fix(stream-transcription): change fullText type

* fix: lint
2025-10-27 16:32:55 +08:00
藍+85CD 7cc7c75065 refactor(types): extract unknown option to with unknown type (#220)
* refactor(types): extract unknown option to with unknown type

* chore: format code

* fix(stream-text): move shared to deps

* fix(telemetry): sort
2025-09-15 12:49:36 +08:00
藍+85CD af3dbacd77 refactor: avoid catch twice (#209)
* refactor: avoid catch twice

* refactor(shared/response-json): throw xsai error with cause
2025-08-18 14:01:51 +08:00
藍+85CD af733fbace refactor: use std (#171)
* refactor(utils-stream): use std

* refactor(shared): add trampoline

* refactor(generate-text): use trampoline from std

* refactor(xsfetch): use std

* chore: clean comments

* fix(utils-stream): revert changes
2025-07-01 15:28:24 +08:00
藍+85CD fcf222d835 chore(shared): simplify 2025-04-25 16:52:24 +08:00
藍+85CD 5c2349b144 refactor(shared): remove cause, included to message
closed #119
2025-04-25 16:49:22 +08:00
藍+85CD b7bb25ce7d chore: fix lint warning 2025-04-25 16:45:04 +08:00
a72e88b532 fix: error handling when return 200 (#124)
* fix: handle 200 error

* fix: choices

* chore: responseJSON

* Update packages/generate-text/src/index.ts

* Update packages/shared/src/utils/response-json.ts

* Update packages/shared/src/utils/response-json.ts

* fix: lint error

---------

Co-authored-by: Neko <neko@ayaka.moe>
Co-authored-by: 藍+85CD <50108258+kwaa@users.noreply.github.com>
2025-03-28 22:44:56 +08:00
藍+85CD d1fb5b2ae1 refactor: simplify fetch type (#104) 2025-03-12 20:37:43 +08:00
藍+85CD a9c3250d5f fix: openai base url 2025-03-03 13:29:26 +08:00
藍+85CD 8a132c8b76 chore(shared/clean): add docs 2025-02-14 12:54:45 +08:00
藍+85CD 796154b7bd fix: lint errors 2025-01-22 21:52:11 +08:00
藍+85CD ebc522768d fix: lint errors 2025-01-22 21:37:41 +08:00
藍+85CD 4d60993982 fix: lint code 2025-01-22 21:09:03 +08:00
藍+85CD 1f2f07b35a feat: improve error handling (#17)
* feat: improve error handling

* refactor(generate-text): improve structure
2025-01-06 19:43:35 +08:00
藍+85CD d1dab26cb8 refactor(shared): request-url util 2024-12-18 20:58:34 +08:00
藍+85CD 4f0db58909 feat: allow custom fetch 2024-12-08 19:43:23 +08:00
藍+85CD 8ac15cb72c refactor(shared): no longer requires strict baseURL 2024-12-07 12:42:50 +08:00
藍+85CD 611c110414 fix(shared): filter body 2024-12-07 12:42:44 +08:00
藍+85CD 23eaa48396 refactor!: use baseURL instead of url 2024-12-06 10:08:59 +08:00
藍+85CD 8cf6f809fb fix(shared/clean): not equal 2024-12-03 20:19:44 +08:00
藍+85CD 00e719b895 refactor(shared): new requestHeaders util 2024-12-03 20:05:39 +08:00
藍+85CD 9e1c7cea7f fix(shared/clean): clean undefined only 2024-12-03 20:02:01 +08:00
藍+85CD de10d53b4e refactor(shared): new requestBody util 2024-12-03 19:59:45 +08:00
藍+85CD 66b9c17e44 refactor(shared): remove requestUrl 2024-12-03 19:55:30 +08:00
藍+85CD 9529f863d6 refactor: move apiKey to shared 2024-12-03 19:54:25 +08:00
藍+85CD ff6b5c10e1 chore(shared): add comments 2024-12-03 19:49:51 +08:00
藍+85CD 142aca6c82 refactor: move model to shared 2024-12-03 19:48:32 +08:00
藍+85CD f3a1f2ee08 refactor!: providers 2024-12-03 14:54:25 +08:00
藍+85CD 53f277daa8 feat: new package generate-object 2024-11-25 14:36:07 +08:00
藍+85CD 92e0f540cd fix: typo 2024-11-23 22:32:14 +08:00
藍+85CD f69919f049 feat: support abort signal 2024-11-22 23:40:59 +08:00
藍+85CD abda3ca4fe feat!: tools 2024-11-22 23:01:21 +08:00
藍+85CD 09872d817f refactor!: migrate to monorepo 2024-11-22 15:11:02 +08:00