converse-mcp-server 2.20.8 → 2.21.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "converse-mcp-server",
3
- "version": "2.20.8",
3
+ "version": "2.21.0",
4
4
  "description": "Converse MCP Server - Converse with other LLMs with chat and consensus tools",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -673,10 +673,12 @@ async function* createStreamingGenerator(client, prompt, options, signal, config
673
673
  let done = false;
674
674
  let streamError = null;
675
675
  let usageData = null;
676
+ let receivedDeltas = false;
676
677
 
677
678
  const unsubscribe = session.on((event) => {
678
679
  switch (event.type) {
679
680
  case 'assistant.message_delta':
681
+ receivedDeltas = true;
680
682
  eventQueue.push({
681
683
  type: 'delta',
682
684
  data: { textDelta: event.data.deltaContent },
@@ -684,8 +686,8 @@ async function* createStreamingGenerator(client, prompt, options, signal, config
684
686
  break;
685
687
 
686
688
  case 'assistant.message':
687
- // Final complete message — use as fallback if deltas were coalesced
688
- if (event.data.content) {
689
+ // Final complete message — only use if no streaming deltas were received
690
+ if (!receivedDeltas && event.data.content) {
689
691
  eventQueue.push({
690
692
  type: 'delta',
691
693
  data: { textDelta: event.data.content },
@@ -62,6 +62,46 @@ const SUPPORTED_MODELS = {
62
62
  'Fastest, most cost-efficient GPT-5 (400K context, 128K output) - Summarization, classification',
63
63
  aliases: ['gpt5-nano', 'gpt-5nano', 'gpt 5 nano', 'gpt-5-nano-2025-08-07'],
64
64
  },
65
+ 'gpt-5.4-mini': {
66
+ modelName: 'gpt-5.4-mini',
67
+ friendlyName: 'OpenAI (GPT-5.4 mini)',
68
+ contextWindow: 400000,
69
+ maxOutputTokens: 128000,
70
+ supportsStreaming: true,
71
+ supportsImages: true,
72
+ supportsTemperature: false,
73
+ supportsWebSearch: true,
74
+ supportsResponsesAPI: true,
75
+ timeout: 1800000, // 30 minutes
76
+ description:
77
+ 'Fast, efficient GPT-5.4 (400K context, 128K output) - Coding, subagents, computer use, tool use. 2x faster than GPT-5 mini',
78
+ aliases: [
79
+ 'gpt5.4-mini',
80
+ 'gpt-5.4mini',
81
+ 'gpt 5.4 mini',
82
+ 'gpt-5.4-mini-2025-08-07',
83
+ ],
84
+ },
85
+ 'gpt-5.4-nano': {
86
+ modelName: 'gpt-5.4-nano',
87
+ friendlyName: 'OpenAI (GPT-5.4 nano)',
88
+ contextWindow: 400000,
89
+ maxOutputTokens: 128000,
90
+ supportsStreaming: true,
91
+ supportsImages: true,
92
+ supportsTemperature: false,
93
+ supportsWebSearch: false,
94
+ supportsResponsesAPI: true,
95
+ timeout: 600000, // 10 minutes
96
+ description:
97
+ 'Smallest, cheapest GPT-5.4 (400K context, 128K output) - Classification, data extraction, ranking, coding subagents',
98
+ aliases: [
99
+ 'gpt5.4-nano',
100
+ 'gpt-5.4nano',
101
+ 'gpt 5.4 nano',
102
+ 'gpt-5.4-nano-2025-08-07',
103
+ ],
104
+ },
65
105
  'gpt-5.4-pro': {
66
106
  modelName: 'gpt-5.4-pro',
67
107
  friendlyName: 'OpenAI (GPT-5.4 Pro)',