n8n-nodes-rooyai-model 1.0.14 → 1.0.16

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.
@@ -108,10 +108,10 @@ class RooyaiChatModel {
108
108
  const modelName = this.getNodeParameter('model', itemIndex);
109
109
  const options = this.getNodeParameter('options', itemIndex, {});
110
110
  const model = new openai_1.ChatOpenAI({
111
- openAIApiKey: apiKey,
112
- modelName: modelName,
111
+ model: modelName,
113
112
  temperature: (_a = options.temperature) !== null && _a !== void 0 ? _a : 0.7,
114
113
  maxTokens: options.maxTokens,
114
+ openAIApiKey: apiKey,
115
115
  configuration: {
116
116
  baseURL: 'http://35.226.94.120:3000/v1',
117
117
  defaultHeaders: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-rooyai-model",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Rooyai AI Model Integration for n8n",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"
@@ -29,11 +29,11 @@
29
29
  "typescript": "^5.0.0"
30
30
  },
31
31
  "dependencies": {
32
- "@langchain/core": "^0.1.63",
33
- "@langchain/openai": "^0.0.28",
34
- "langchain": "^0.1.36"
32
+ "@langchain/core": "0.1.63",
33
+ "@langchain/openai": "0.0.28",
34
+ "openai": "4.28.4"
35
35
  },
36
- "peerDependencies": {
37
- "openai": "^4.0.0"
36
+ "overrides": {
37
+ "openai": "4.28.4"
38
38
  }
39
39
  }