GPT 3.5 from OpenAI and neoGPT plugin. - Forum

Forum Navigation
You need to log in to create posts and topics.

GPT 3.5 from OpenAI and neoGPT plugin.

Page 1 of 2Next

As you probably know, ChatGPT is based in GPT 3.5 from OpenAI.
Yesterday they opened the new API and I have already been able to use it from VisualNEO Web.
You will need an API key (not free) but I think it's worth enough because the possibilities are endless.
Soon I will update this information with some samples.
I'm working in neoGPT plugin, so we can easily include AI into our VisualNEO Web apps! :)

 

Vadim, farhad2008 and 8 other users have reacted to this post.
Vadimfarhad2008CDY@44fkapnistasmatRoxieYASINjavadrajabihakamiroccocoglianoPhil78

Just two screenshots showing text generation and image generation from user prompts :)

Uploaded files:
  • You need to login to have access to uploads.
Vadim, Gaev and 7 other users have reacted to this post.
VadimGaevCDY@44fkapnistAsleyCruzDarbdenralYASINsmartmediaroccocogliano

@luishp

ChatGPT is certainly the most talked-about AI program today. But there are many more, and they are all mind-boggling. I spent a few months finding the best ones. They cover everything from chat, story writing, photo editing, deep fake, voice changer, music maker and more...

Here is my list. I hope you enjoy it!

https://fuups.ai/
https://analogenie.com/
https://chat.openai.com/chat
https://app.jenni.ai/
https://quillbot.com/
https://beta.tome.app/
https://editor.typely.com/
https://cleanup.pictures/
https://auth0.openai.com/
https://www.fotor.com/
https://imagen.research.google/
https://imgcreator.zmo.ai/
https://lexica.art/
https://www.midjourney.com/
https://www.descript.com/
https://www.d-id.com
https://runwayml.com/ai-magic-tools/
https://soundraw.io/
https://www.voicemod.net/
https://www.wisecut.video/
https://xpressioncamera.com/
http://aipropaganda.com/
https://platform.openai.com/playground/
https://tinywow.com/

luishp, Vadim and 7 other users have reacted to this post.
luishpVadimCDY@44asmatAsleyCruzAnthony LaTorreYASINPhil78Rob Maggs

good news

@fkapnist Thank you for sharing!
But please note that I'm talking about using GPT 3.5 AI API in our apps.
It can be used to generate JSON content on the fly or transform data.
With the right prompt it can be used for a wide variety of programming goals.
Imagine for example a Quizz app that generates questions and answers on the fly for any purpose:

So, if I use this prompt in ChatGPT:

Now you are a JSON generating machine that offers JSON data and anything more. Create a quizz with 5 questions about the second world ward. Each question has 4 possible answers and only one is correct. Include taht information in the JSON data.

I get this answer:

{
"quiz": {
"title": "World War II Quiz",
"description": "Test your knowledge about World War II",
"questions": [
{
"question": "In which year did World War II begin?",
"answers": [
{"answer": "1939", "correct": true},
{"answer": "1941", "correct": false},
{"answer": "1945", "correct": false},
{"answer": "1936", "correct": false}
]
},
{
"question": "Which countries formed the Axis Powers?",
"answers": [
{"answer": "Germany, Italy, and Japan", "correct": true},
{"answer": "United States, United Kingdom, and France", "correct": false},
{"answer": "Soviet Union, United States, and United Kingdom", "correct": false},
{"answer": "China, India, and Australia", "correct": false}
]
},
{
"question": "What was the name of the Allied invasion of Normandy in 1944?",
"answers": [
{"answer": "Operation Overlord", "correct": true},
{"answer": "Operation Barbarossa", "correct": false},
{"answer": "Operation Torch", "correct": false},
{"answer": "Operation Neptune", "correct": false}
]
},
{
"question": "What was the Manhattan Project?",
"answers": [
{"answer": "The development of the atomic bomb", "correct": true},
{"answer": "The Allied plan to invade Germany", "correct": false},
{"answer": "The code name for the German invasion of the Soviet Union", "correct": false},
{"answer": "The Japanese attack on Pearl Harbor", "correct": false}
]
},
{
"question": "What was the outcome of the Battle of Stalingrad?",
"answers": [
{"answer": "Soviet victory", "correct": true},
{"answer": "German victory", "correct": false},
{"answer": "Draw", "correct": false},
{"answer": "United States victory", "correct": false}
]
}
]
}
}

I hope this example will help to understand the power of a generative AI

Regards.

Vadim, Gaev and 2 other users have reacted to this post.
VadimGaevRoxieAsleyCruz

@luishp

All this is amazing. The power of IA on VisualNeoWeb. I think your new major update will bring a lot of big news.

Looking forward to getting this update 🔥

Quote from luishp on March 3, 2023, 8:56 am

@fkapnist Thank you for sharing!
But please note that I'm talking about using GPT 3.5 AI API in our apps.
It can be used to generate JSON content on the fly or transform data.
With the right prompt it can be used for a wide variety of programming goals.
Imagine for example a Quizz app that generates questions and answers on the fly for any purpose:

So, if I use this prompt in ChatGPT:

Now you are a JSON generating machine that offers JSON data and anything more. Create a quizz with 5 questions about the second world ward. Each question has 4 possible answers and only one is correct. Include taht information in the JSON data.

I get this answer:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
{
"quiz": {
"title": "World War II Quiz",
"description": "Test your knowledge about World War II",
"questions": [
{
"question": "In which year did World War II begin?",
"answers": [
{"answer": "1939", "correct": true},
{"answer": "1941", "correct": false},
{"answer": "1945", "correct": false},
{"answer": "1936", "correct": false}
]
},
{
"question": "Which countries formed the Axis Powers?",
"answers": [
{"answer": "Germany, Italy, and Japan", "correct": true},
{"answer": "United States, United Kingdom, and France", "correct": false},
{"answer": "Soviet Union, United States, and United Kingdom", "correct": false},
{"answer": "China, India, and Australia", "correct": false}
]
},
{
"question": "What was the name of the Allied invasion of Normandy in 1944?",
"answers": [
{"answer": "Operation Overlord", "correct": true},
{"answer": "Operation Barbarossa", "correct": false},
{"answer": "Operation Torch", "correct": false},
{"answer": "Operation Neptune", "correct": false}
]
},
{
"question": "What was the Manhattan Project?",
"answers": [
{"answer": "The development of the atomic bomb", "correct": true},
{"answer": "The Allied plan to invade Germany", "correct": false},
{"answer": "The code name for the German invasion of the Soviet Union", "correct": false},
{"answer": "The Japanese attack on Pearl Harbor", "correct": false}
]
},
{
"question": "What was the outcome of the Battle of Stalingrad?",
"answers": [
{"answer": "Soviet victory", "correct": true},
{"answer": "German victory", "correct": false},
{"answer": "Draw", "correct": false},
{"answer": "United States victory", "correct": false}
]
}
]
}
}
{ "quiz": { "title": "World War II Quiz", "description": "Test your knowledge about World War II", "questions": [ { "question": "In which year did World War II begin?", "answers": [ {"answer": "1939", "correct": true}, {"answer": "1941", "correct": false}, {"answer": "1945", "correct": false}, {"answer": "1936", "correct": false} ] }, { "question": "Which countries formed the Axis Powers?", "answers": [ {"answer": "Germany, Italy, and Japan", "correct": true}, {"answer": "United States, United Kingdom, and France", "correct": false}, {"answer": "Soviet Union, United States, and United Kingdom", "correct": false}, {"answer": "China, India, and Australia", "correct": false} ] }, { "question": "What was the name of the Allied invasion of Normandy in 1944?", "answers": [ {"answer": "Operation Overlord", "correct": true}, {"answer": "Operation Barbarossa", "correct": false}, {"answer": "Operation Torch", "correct": false}, {"answer": "Operation Neptune", "correct": false} ] }, { "question": "What was the Manhattan Project?", "answers": [ {"answer": "The development of the atomic bomb", "correct": true}, {"answer": "The Allied plan to invade Germany", "correct": false}, {"answer": "The code name for the German invasion of the Soviet Union", "correct": false}, {"answer": "The Japanese attack on Pearl Harbor", "correct": false} ] }, { "question": "What was the outcome of the Battle of Stalingrad?", "answers": [ {"answer": "Soviet victory", "correct": true}, {"answer": "German victory", "correct": false}, {"answer": "Draw", "correct": false}, {"answer": "United States victory", "correct": false} ] } ] } }
{
"quiz": {
"title": "World War II Quiz",
"description": "Test your knowledge about World War II",
"questions": [
{
"question": "In which year did World War II begin?",
"answers": [
{"answer": "1939", "correct": true},
{"answer": "1941", "correct": false},
{"answer": "1945", "correct": false},
{"answer": "1936", "correct": false}
]
},
{
"question": "Which countries formed the Axis Powers?",
"answers": [
{"answer": "Germany, Italy, and Japan", "correct": true},
{"answer": "United States, United Kingdom, and France", "correct": false},
{"answer": "Soviet Union, United States, and United Kingdom", "correct": false},
{"answer": "China, India, and Australia", "correct": false}
]
},
{
"question": "What was the name of the Allied invasion of Normandy in 1944?",
"answers": [
{"answer": "Operation Overlord", "correct": true},
{"answer": "Operation Barbarossa", "correct": false},
{"answer": "Operation Torch", "correct": false},
{"answer": "Operation Neptune", "correct": false}
]
},
{
"question": "What was the Manhattan Project?",
"answers": [
{"answer": "The development of the atomic bomb", "correct": true},
{"answer": "The Allied plan to invade Germany", "correct": false},
{"answer": "The code name for the German invasion of the Soviet Union", "correct": false},
{"answer": "The Japanese attack on Pearl Harbor", "correct": false}
]
},
{
"question": "What was the outcome of the Battle of Stalingrad?",
"answers": [
{"answer": "Soviet victory", "correct": true},
{"answer": "German victory", "correct": false},
{"answer": "Draw", "correct": false},
{"answer": "United States victory", "correct": false}
]
}
]
}
}

I hope this example will help to understand the power of a generative AI

Regards.

@luishp

Thanks.

I asked GPT-3 (Playground) to give me the Base64 string for a jpg image of a tree on a hill.
It gave me this:

iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAYAAACI7Fo9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABd5SURBVHhe7d29TxVVFsd/z/fZG17YU6nVJ6WpU6m1U6lVU6lVU6lVU6lVU6lVU6lVU6lVU6lVU6lVU6lVU6lVU6lVU6lVU6lVU6kW6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6UStI6U

But when I try to view it in VisualNEO, I get nothing. What am I doing wrong?

 

Thanks.

.

 

Uploaded files:
  • You need to login to have access to uploads.

@fkapnist you need to prepend this:

data:image/jpeg;base64,

But ChatGPT is a Text generator AI not an Image generator AI. Probably your output has nothing (it's too short). You need Dall-E 2 instead.
OpenAI API allows you to generate images from a text prompt too (encoded as Base64 or as an URL).
I will include it in neoGpt plugin.

Vadim and fkapnist have reacted to this post.
Vadimfkapnist
Quote from luishp on March 3, 2023, 5:49 pm

@fkapnist you need to prepend this:

data:image/jpeg;base64,

But ChatGPT is a Text generator AI not an Image generator AI. Probably your output has nothing (it's too short). You need Dall-E 2 instead.
OpenAI API allows you to generate images from a text prompt too (encoded as Base64 or as an URL).
I will include it in neoGpt plugin.

@luishp

I was using Playground - OpenAI API

But the prepend does not work either.  Is there another way to get Base64 code for AI images without purchasing an API Key?

DALL-E generates an image for me but it does not give me its Base64 code string ...

(Everyone is waiting for Google to release its AI software . But it is still not available to the public.)

.

 

@fkapnist

But the prepend does not work either

I think the Base64 code you got has no sense.

Is there another way to get Base64 code for AI images without purchasing an API Key?

I don't know, sorry.

 

fkapnist has reacted to this post.
fkapnist

@luishp, sounds great and the costs are coming down.. ;)

 

fkapnist has reacted to this post.
fkapnist

I see that GPT 3 can answer some difficult questions on this forum. Maybe it should be built into it? That would give the administrator some time off....

.

I see that GPT 3 can answer some difficult questions on this forum. Maybe it should be built into it? That would give the administrator some time off....

It's necessary to "train it". As far as I know it's not possible right now.
If you try to get asnwers to VisualNEO Win or Web related questions it will invent the answers.
You can't trust everything it writes.

CDY@44 has reacted to this post.
CDY@44
Quote from luishp on March 4, 2023, 2:52 pm

I see that GPT 3 can answer some difficult questions on this forum. Maybe it should be built into it? That would give the administrator some time off....

It's necessary to "train it". As far as I know it's not possible right now.
If you try to get asnwers to VisualNEO Win or Web related questions it will invent the answers.
You can't trust everything it writes.

I noticed that it will make stuff up, if it doesn't have enough data....

.

 

https://youtu.be/KtV5P5adE_I

Thanks for the plugin!

My question is related to the OpenAI API Key. If we use our own key in the app, is it secure in the compiled app, or can it be easily accessed or hacked by someone?

Best regards,

 

Quote from tonyspacex on June 13, 2023, 6:04 pm

Thanks for the plugin!

My question is related to the OpenAI API Key. If we use our own key in the app, is it secure in the compiled app, or can it be easily accessed or hacked by someone?

Best regards,

 

Hi @tonyspacex ,

You can always obfuscate the main.js or a part of it with free online/paid utilities

@luishp

the neogpt plugin works perfect! Thanks for this new version!
luishp and tonyspacex have reacted to this post.
luishptonyspacex

Thanks for the plugin!
My question is related to the OpenAI API Key. If we use our own key in the app, is it secure in the compiled app, or can it be easily accessed or hacked by someone?Best regards,

@tonyspacex @emmanuel-fernandez I encrypt the API key using neoCryptoEncrypt so it's not included in the code as it's. And it's decrypted just before use.
For better security you can use a Password as the "Secret Key" for both encrypting and decrypting your API Key.

Anyway I'm currently thinking about a way to include API calls in neoPhp plugin so all the API keys are stored within config.php file (never sent to the client web browser).

Darbdenral, emo and tonyspacex have reacted to this post.
Darbdenralemotonyspacex

Gracias @luishp funciona perfecto generando primero el AES con neoCryptoEncrypt de la api y utilizando neoCryptoDecrypt después en la aplicación.
Para mi ésta solución es perfectamente válida ya que no necesito servidor php y proporciona seguridad a la apikey.

Thanks @luishp it works perfect generating first the AES with neoCryptoEncrypt from the api and then using neoCryptoDecrypt in the application.
For me this solution is perfectly valid since I don't need a php server and provides security to the apikey.

luishp and tonyspacex have reacted to this post.
luishptonyspacex
Quote from emo on June 14, 2023, 4:37 pm

Gracias @luishp funciona perfecto generando primero el AES con neoCryptoEncrypt de la api y utilizando neoCryptoDecrypt después en la aplicación.
Para mi ésta solución es perfectamente válida ya que no necesito servidor php y proporciona seguridad a la apikey.

Thanks @luishp it works perfect generating first the AES with neoCryptoEncrypt from the api and then using neoCryptoDecrypt in the application.
For me this solution is perfectly valid since I don't need a php server and provides security to the apikey.

¿La contraseña para desencriptar la API no queda facilmente localizable y visible dentro de la aplicacion?
Is the password to decrypt the API not easily locatable and visible within the application?

Page 1 of 2Next