Skip to content

Commit f778851

Browse files
Merge pull request #117 from intelligentnode/update-openai
Update default openai
2 parents 6c64ada + f34ca09 commit f778851

File tree

9 files changed

+16
-17
lines changed

9 files changed

+16
-17
lines changed

IntelliNode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const { RemoteLanguageModel, LanguageModelInput } = require('intellinode');
135135
2. call openai model:
136136
```js
137137
const langModel = new RemoteLanguageModel('openai-key', 'openai');
138-
model_name = 'gpt-3.5-turbo-instruct'
138+
model_name = 'gpt-4o'
139139

140140
const results = await langModel.generateText(new LanguageModelInput({
141141
prompt: 'Write a product description for smart plug that works with voice assistant.',

IntelliNode/model/input/ChatModelInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ChatGPTInput extends ChatModelInput {
4545
'The input type should be system to define the chatbot theme or instructions.'
4646
);
4747
}
48-
this.model = options.model || 'gpt-3.5-turbo';
48+
this.model = options.model || 'gpt-4o';
4949
this.temperature = options.temperature || 1;
5050
this.maxTokens = options.maxTokens || null;
5151
this.numberOfOutputs = 1;

IntelliNode/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

IntelliNode/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intellinode",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"description": "Evaluate and integrate with latest AI models including ChatGPT, Llama, Diffusion, Cohere, Gemini, and Hugging Face.",
55
"main": "index.js",
66
"keywords": [
@@ -9,14 +9,13 @@
99
"stable diffusion",
1010
"openai",
1111
"huggingface",
12-
"Llama",
13-
"language models",
12+
"llm",
13+
"embeddings",
14+
"prompt",
1415
"image generation",
1516
"speech synthesis",
16-
"automation",
17-
"mistral",
18-
"gemini",
1917
"deepseek",
18+
"gemini",
2019
"framework"
2120
],
2221
"author": "IntelliNode",

IntelliNode/test/integration/ModelEvaluation.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const llamaChat = {
1111
};
1212
const openaiChat = {
1313
apiKey: process.env.OPENAI_API_KEY, provider: SupportedChatModels.OPENAI,
14-
type: 'chat', model: 'gpt-3.5-turbo', maxTokens: 50
14+
type: 'chat', model: 'gpt-4o', maxTokens: 50
1515
};
1616
const cohereCompletion = {
1717
apiKey: process.env.COHERE_API_KEY, provider: SupportedLangModels.COHERE,

IntelliNode/test/integration/OpenAIWrapper.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const openAI = new OpenAIWrapper(process.env.OPENAI_API_KEY);
1212
async function testLanguageModel() {
1313
try {
1414
const params = {
15-
model: 'gpt-3.5-turbo-instruct',
15+
model: 'gpt-4o',
1616
prompt: 'Summarize the plot of the Inception movie in two sentences',
1717
max_tokens: 50,
1818
n: 1,
@@ -32,7 +32,7 @@ async function testLanguageModel() {
3232
async function testChatGPT() {
3333
try {
3434
const params = {
35-
model: 'gpt-3.5-turbo',
35+
model: 'gpt-4o',
3636
messages: [{
3737
role: 'system',
3838
content: 'You are a helpful assistant.'

IntelliNode/test/integration/RemoteFineTune.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function testOpenAIFineTuneRemoteModel() {
2323
const file = await tuner.uploadFile(filePayload)
2424

2525
const input = new FineTuneInput({
26-
model: 'gpt-3.5-turbo',
26+
model: 'gpt-4o',
2727
training_file: file.id
2828
})
2929

IntelliNode/test/integration/RemoteLanguageModel.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const cohereLanguageModel = new RemoteLanguageModel(cohereApiKey, SupportedLangM
1212
async function testOpenAIGenerateOneOutput() {
1313
const langInput = new LanguageModelInput({
1414
prompt: 'Write a product description for any device input adapter.',
15-
model: 'gpt-3.5-turbo-instruct',
15+
model: 'gpt-4o',
1616
temperature: 0.7});
1717

1818
//console.log('openAI inputs: ', langInput.getOpenAIInputs());
@@ -25,7 +25,7 @@ async function testOpenAIGenerateOneOutput() {
2525
async function testOpenAIGenerateMultipleOutputs() {
2626
const langInput = new LanguageModelInput({
2727
prompt:'Write a product description for any device input adapter.',
28-
model:'gpt-3.5-turbo-instruct',
28+
model:'gpt-4o',
2929
numberOfOutputs:3,
3030
temperature:0.7})
3131

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const { RemoteLanguageModel, LanguageModelInput } = require('intellinode');
118118
call openai model:
119119
```js
120120
const langModel = new RemoteLanguageModel('openai-key', 'openai');
121-
model_name = 'gpt-3.5-turbo-instruct'
121+
model_name = 'gpt-4o'
122122

123123
const results = await langModel.generateText(new LanguageModelInput({
124124
prompt: 'Write a product description for smart plug that works with voice assistant.',

0 commit comments

Comments
 (0)