jorge-menjivar / unsaged

Open source chat kit engineered for seamless interaction with AI models.
https://unsaged.com
Apache License 2.0
248 stars 77 forks source link

Simplified openai endpoints using openai-edge package #65

Closed sebiweise closed 12 months ago

sebiweise commented 12 months ago

I´ve implemented the openai-edge package for the openai endpoints getModels and getStream. Haven´t tested it with Azure OpenAi Services, haven´t got access yet. There is an announcement of an upcoming update for the official openai node package that will bring edge-functionality so maybe this will change in the future.

Also I´ve changed some logging to only log when using DEBUG_MODE.

vercel[bot] commented 12 months ago

@sebiweise is attempting to deploy a commit to the Generative AI Inc Team on Vercel.

A member of the Team first needs to authorize it.

Bortus-AI commented 12 months ago

I´ve implemented the openai-edge package for the openai endpoints getModels and getStream. Haven´t tested it with Azure OpenAi Services, haven´t got access yet. There is an announcement of an upcoming update for the official openai node package that will bring edge-functionality so maybe this will change in the future.

Also I´ve changed some logging to only log when using DEBUG_MODE.

I can test it with azure today

Bortus-AI commented 12 months ago

I got a little distracted on my S3 project but I will test tomorrow and provide feedback

sebiweise commented 12 months ago

I just got Microsoft OpenAI access over night, I quickly put in all the env vars in my develop ENV on Vercel and I´m getting this error: image I will test this again on my local pc and have a look at the exact error message.