llmjs2 1.3.6 → 1.3.7

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": "llmjs2",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "A unified Node.js library for connecting to multiple LLM providers: OpenAI, Ollama, and OpenRouter",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
@@ -93,7 +93,7 @@ class OpenAIProvider {
93
93
  return {
94
94
  content: response.choices[0]?.message?.content || '',
95
95
  role: response.choices[0]?.message?.role || 'assistant',
96
- toolCalls: response.choices[0]?.message?.tool_calls,
96
+ tool_calls: response.choices[0]?.message?.tool_calls,
97
97
  usage: response.usage,
98
98
  model: response.model,
99
99
  finishReason: response.choices[0]?.finish_reason
@@ -102,7 +102,7 @@ class OpenRouterProvider {
102
102
  return {
103
103
  content: response.choices[0]?.message?.content || '',
104
104
  role: response.choices[0]?.message?.role || 'assistant',
105
- toolCalls: response.choices[0]?.message?.tool_calls,
105
+ tool_calls: response.choices[0]?.message?.tool_calls,
106
106
  usage: response.usage,
107
107
  model: response.model,
108
108
  finishReason: response.choices[0]?.finish_reason