KellanM / OpenAI-Api-Unreal

Integration for the OpenAI Api in Unreal Engine
MIT License
649 stars 143 forks source link

New Chat Completion #16

Closed cirwin518 closed 1 year ago

cirwin518 commented 1 year ago

The GPT-3.5-Turbo chat endpoint is live and requires a new completion method.

https://platform.openai.com/docs/guides/chat

dicitur commented 1 year ago

Hi! I was wondering too how to implement this into the plugin. I tried modifying the source files to add GPT 3.5-Turbo in the engines list but it doesn't show up in the game editor.

KOFli commented 1 year ago

Turbo has different API requests than the other models. Turbo uses "https://api.openai.com/v1/chat/completions", this plugin uses "https://api.openai.com/v1/engines/modelname/completions", in order to support Turbo must upgrade the code.

dicitur commented 1 year ago

I see, interesting. Thanks for the answer. Guess it is more complex than just adding a new model line then.

KellanM commented 1 year ago

planning in adding support for it this weekend. Whisper is also on my list.

dicitur commented 1 year ago

Awesome. Great plugin by the way, thanks a lot.

dom452 commented 1 year ago

planning in adding support for it this weekend. Whisper is also on my list.

How's the upgrade coming along? I note that the chat style of completion has a different package to send, so no simple task. Also of note is that GPT4 uses the chat completion format :)

KellanM commented 1 year ago

planning in adding support for it this weekend. Whisper is also on my list.

How's the upgrade coming along? I note that the chat style of completion has a different package to send, so no simple task. Also of note is that GPT4 uses the chat completion format :)

Sorry about the wait - it's been a hectic month but the update is finally here! The plugin now supports ChatGPT models and GPT-4.