@ykurilov/agent-chat-core 0.59.0 → 0.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-QA5DVEXF.js → chunk-WQZQZCAB.js} +61 -8
- package/dist/chunk-WQZQZCAB.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/storage-contract.js +1 -1
- package/dist/types/models/providers/tool-result-images.d.ts +8 -0
- package/package.json +1 -1
- package/dist/chunk-QA5DVEXF.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/storage-contract.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Картинка в ответе инструмента для провайдеров, совместимых с OpenAI (Together, Fireworks). Их пакеты кладут ответ
|
|
3
|
+
* инструмента из частей (`content`) строкой JSON: модель видит буквы base64 вместо картинки и думает без конца (живой
|
|
4
|
+
* ход 2026-10-15). Сами провайдеры картинку видят, если она частью `image_url` (живой замер того же дня) — так её
|
|
5
|
+
* передаёт и пакет DeepSeek. Обёртка `fetch` переписывает такую строку в части `text` и `image_url` перед отправкой.
|
|
6
|
+
* Ответ без картинки, обычный текст и JSON инструмента не трогаются: запрос тот же, кэш цел.
|
|
7
|
+
*/
|
|
8
|
+
export declare function withToolResultImages(given?: typeof globalThis.fetch): typeof globalThis.fetch;
|