Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

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:
    33,623
    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
     
  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:
    33,623
    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.