Commit graph

67 commits

Author SHA1 Message Date
Vitali sharp8n ce08fc132b fix(DeepSeekAI): capture and echo reasoning_content for thinking mode tool calls
DeepSeek thinking mode (deepseek-v4-flash/pro with reasoning enabled) returns
reasoning_content in every delta. For requests carrying tools, the reasoning_content
of previous assistant messages MUST be passed back in all subsequent requests,
otherwise DeepSeek answers 400 'The reasoning_content ... must be passed back'.

Changes:
- Bump OpenAI SDK 2.5.0 -> 2.12.0 (JsonPatch public API required to read/write
  the unknown reasoning_content property; 2.5.0 only stores it internally).
- Fix BotSharp.Plugin.OpenAI image quality enum names for SDK 2.12
  (GeneratedImageQuality.Low -> LowQuality, Medium -> MediumQuality).
- Add RoleDialogModel.ReasoningContent (serialized as reasoning_content) and
  persist it through DialogElement/DialogMetaData/ConversationStorage.
- DeepSeekAI ChatCompletionProvider:
  * capture reasoning_content from non-streaming responses (ExtractReasoningContent)
  * capture per-delta reasoning_content in the streaming loop and accumulate it
  * set ReasoningContent on assistant/function response messages
  * echo reasoning_content back via AssistantChatMessage JsonPatch in PrepareOptions
- RoutingService.InvokeAgent: copy response.ReasoningContent onto the stored
  Function/Assistant dialog so the echo survives the tool-call round trip.
2026-09-09 11:06:12 +03:00
Haiping Chen ffc9866069 Release v5.2 2025-10-17 14:37:17 -05:00
Haiping Chen 2df49ef769 Bump Azure.AI.OpenAI to 2.5.0 2025-10-17 14:08:08 -05:00
Haiping Chen 099187fd5e Add image to Claude 2025-10-17 13:59:21 -05:00
nick.yi cd31fe376b optimize DistributedLocker 2025-10-17 09:37:01 +08:00
Haiping Chen e1dc28beef Image Composition 2025-10-14 20:28:09 -05:00
Jicheng Lu 0aa633787a init 2025-09-26 19:21:08 -05:00
Jicheng Lu 349e58eee8 refine code and settings 2025-09-15 13:28:57 -05:00
Jicheng Lu e72a6b5021 refine image converter 2025-09-11 17:36:20 -05:00
Jicheng Lu b20347fc0d upgrade openai package 2025-09-11 14:22:26 -05:00
Haiping Chen de032683d7 Add cursor_position for OsDriver. 2025-08-15 11:44:44 -05:00
Jicheng Lu d19a4e1aaf add reasoning settings 2025-08-12 11:33:51 -05:00
Jicheng Lu b556040d8f add reasoning effort level 2025-08-12 10:22:19 -05:00
Jicheng Lu 81b2f299cd revert reasoning effor level 2025-08-10 22:42:10 -05:00
Jicheng Lu bf56fa9d43 add reasoning effort level 2025-08-08 17:13:37 -05:00
Jicheng Lu bac6a624d1 refine filter 2025-08-06 16:36:36 -05:00
Jicheng Lu 734d8f7f2e Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/init-reactive-x 2025-07-25 16:12:31 -05:00
Jicheng Lu b5dc4ea20e upgrade openai 2025-07-25 10:28:27 -05:00
Jicheng Lu a3157c2470 init message hub and chathub observers 2025-06-17 13:17:28 -05:00
Haiping 365c1db383
Update Directory.Packages.props 2025-05-29 05:04:20 -05:00
Stephen Toub b4dda5e63a Update to Microsoft.Extensions.AI stable release 2025-05-16 21:16:49 -04:00
Haiping a2fdc769a9
Merge pull request #1044 from SciSharp/mcpdummytools
Refactor InvokeFunction code
2025-05-15 10:52:26 -05:00
Mackinnon Buck b2bd14856e Update MEAI version to 9.4.4-preview.1.25259.16 2025-05-12 14:33:58 -07:00
geffzhang 1defef62e8 Merge branch 'master' into mcpdummytools 2025-05-11 15:21:49 +08:00
Haiping 4e7b1d0ff5
Merge pull request #1045 from MackinnonBuck/mbuck/update-meai-to-9.4.3-preview.1.25230.7
Update Microsoft.Extensions.AI version to 9.4.3-preview.1.25230.7
2025-05-06 20:28:57 -05:00
Mackinnon Buck 4adaf64bbc Update MEAI version to 9.4.3-preview.1.25230.7 2025-05-01 16:10:34 -07:00
geffzhang aac1ae1195 upgrade ModelContextProtocol 0.1.0-preview11 2025-05-01 16:54:42 +08:00
Jicheng Lu 97f6dd7a44 refine chat session 2025-04-28 16:02:10 -05:00
Haiping Chen fe82939733 response_to_user 2025-04-23 23:10:07 -05:00
Jicheng Lu 8acdbb7ba4 upgrade mcp 2025-04-15 00:25:03 -05:00
Haiping e50ce3bf34
Merge pull request #1002 from MackinnonBuck/mbuck/update-meai-version
Update Microsoft.Extensions.AI version to 9.4.0-preview.1.25207.5
2025-04-10 13:40:11 -05:00
Mackinnon Buck de3f0d7293 Update Microsoft.Extensions.AI version 2025-04-08 15:11:31 -07:00
Haiping 18c6598af3
Merge pull request #993 from gunpal5/master
feat: Added Google Multimodal Live APIs
2025-04-05 10:24:42 -05:00
Haiping Chen 6fc844ee16 Merge branch 'master' of https://github.com/SciSharp/BotSharp 2025-04-04 19:24:16 -05:00
Haiping Chen 27d3027a31 Upgrade packages. 2025-04-04 19:24:13 -05:00
Gunpal Jain 382e9b1f02
Merge branch 'master' into master 2025-04-04 20:45:40 +05:30
geffzhang 3ea5b3a31d
Merge branch 'master' into upgrademcp 2025-04-04 11:00:07 +08:00
geffzhang 38d1d4fcba feat:upgrade modelcontextprotocol nuget
1、upgrade ModelContextProtocol 0.1.0-preview.5
2、Add ModelContextProtocol.AspNetCore
2025-04-04 10:58:20 +08:00
Gunpal Jain 3859383f71 fixed session initialization 2025-04-04 07:50:45 +05:30
Gunpal Jain d846453090 Merge remote-tracking branch 'origin/master' 2025-04-04 04:33:07 +05:30
Gunpal Jain 8039f7e702 feat: Added Google Live APIs
added Unit Test cases for LLM
2025-04-04 04:32:34 +05:30
Haiping 11d315d33a
Upgrade OpeAI SDK to 2.2.0-beta.4 2025-04-03 16:26:03 -05:00
Haiping Chen 8fcfd489a1 computer use draft 2025-04-02 21:44:39 -05:00
geffzhang 013901fc48 feat: McpClientTool replace Tool 2025-03-29 10:05:52 +08:00
geffzhang d439d38bb9 feat: upgrade ModelContextProtocol 0.1.0-preview.2 2025-03-28 18:13:08 +08:00
geffzhang 22b6ce5d0d
Merge branch 'master' into modelcontextprotocol 2025-03-24 09:21:26 +08:00
Gunpal Jain 439d4b451c feat(Gemini): Added Text Embedding Model
feat: implemented missing methods.
changed to Google_GenerativeAI SDK which supports Multimodal Live APIs.
2025-03-23 23:57:58 +05:30
geffzhang 1a1f56fdc6
Merge branch 'master' into mcp 2025-03-22 10:07:35 +08:00
geffzhang 129331d488 feat: remove ModelContextProtocol source ref
use ModelContextProtocol nuget package replace source ref
2025-03-22 09:59:42 +08:00
geffzhang 58e3e7fba7 feat: Using MCP's SSE transport 2025-03-19 11:07:31 +08:00