Search Unity

Discussion GPT Api Integration

Discussion in 'Scripting' started by S_Erd, Feb 5, 2023.

  1. S_Erd

    S_Erd

    Joined:
    Jan 8, 2015
    Posts:
    5
    Hi,
    will there be any features or documents on GPT Api Integration in future? Are there any rumors or plans regarding this. Thank you. :)
     
  2. unityusing

    unityusing

    Joined:
    Nov 25, 2013
    Posts:
    11
    Yes, I would be very interested in that as well.
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,736
    Isn't it just a REST API with a token? You can hit that yourself with UnityWebRequest right now.

    Standard tips on hitting a new server endpoint from Unity:

    Networking, UnityWebRequest, WWW, Postman, curl, WebAPI, etc:

    https://forum.unity.com/threads/using-unity-for-subscription-lists.1070663/#post-6910289

    https://forum.unity.com/threads/unity-web-request-acting-stupid.1096396/#post-7060150

    And setting up a proxy can be very helpful too, in order to compare traffic:

    https://support.unity.com/hc/en-us/articles/115002917683-Using-Charles-Proxy-with-Unity
     
    Bunny83 likes this.
  4. S_Erd

    S_Erd

    Joined:
    Jan 8, 2015
    Posts:
    5
    Hey Kurt, thanks for your reply.
    Sure I can, after all I have used UnityWebRequest several times in the past. Only I thought of a quick built-in approach for the future. Maybe I should create this myself for the assetstore ;-)
    Anyway, thanks again.
     
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,736
    YOU TOTALLY SHOULD!!

    AI is catching on bigtime so who knows, if you made a good package to simplify access for people using Unity, it might become incredibly popular.

    You could even use the available public Python implementation as your reference for how to structure it.

    You could be Rich and Famous(tm), as my Uncle Pete used to say.
     
  6. MarshallWhitaker

    MarshallWhitaker

    Joined:
    Sunday
    Posts:
    1
    UnityWebRequest has been my go-to tool for handling API requests in Unity projects, but I totally get what you mean about exploring more built-in approaches for the future. And hey, if you end up creating something for the asset store, count me in as one of your first customers! Thanks again for the insight, and it's awesome to connect with fellow devs who are navigating the world of API integration.
     
  7. Lekret

    Lekret

    Joined:
    Sep 10, 2020
    Posts:
    358