Chat GPT for Glide

Is there someone with Java experience that can verify this looks possible?

So I asked Chat GPT how I could access Chat GPT using an API in Glide Apps

It responded with this:

  1. First, you’ll need to sign up for an API key on the OpenAI website.
  2. Once you have your API key, you can use it to make API requests to the GPT-3 endpoint. For example, you can use the following code snippet in Glide app to generate text based on a given prompt:
  3. You can then use the generated text in your Glide app by displaying it in a text field or using it in some other way.

image.jpg​

I have no experience with using Java columns. I wondered if there is an expert that can say ‘ok, this could work’! Moreover, could they create a test version and share the results?

Unfortunately, I’m not an expert in Java, so I can’t verify if this is possible. However, I can suggest that you reach out to the Glide community for help. You can find a list of helpful resources here: Glide Community - Creating amazing apps without code.. Good luck!

This link could be useful: https://www.glideapps.com/templates/hSSgN4PNLu25Y5YONglT-template

This is an experimental automatic reply from a bot. Please like it if the answer is correct.

1 Like

It’s actually given you some Apps Script code (UrlFetchApp is an Apps Script method), which is a flavour of JavaScript, which is definitely not Java. Java & JavaScript are two very different animals :slight_smile:

Anyway, that won’t work as it is in a JavaScript column.

It would however be possible to craft some JavaScript that would work. Not something I’ve attempted to do yet (just one thing on a very long list of things I’d like to play with), but somebody else might have.

3 Likes

Hola @Simon_Hill

You can try with this syntax, this should work using JavaScript plugin:

Saludos!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.