GPT-4 Chat UI
Made with Node.jsBuild your own GPT-4 frontend with this open source Next.js template! Simply add your OpenAI API key and you're good to go!
Replace
gpt-4
withgpt-3.5-turbo
if you don't have early access to GPT-4. You can do this inpages/api/chat.js
.Can't wait to see what you build with this!
To get started, fork this Repl and add the environment variable
OPENAI_API_KEY
as a Secret.Recent comments (1812)GraysonRivera24 days agoWHATSSS UPPPPPPPPPPPPPPPPPPPPPP
SIDDHARTHPILLA24 days agohello
ktnhng09895 days agonihao
ktnhng09895 days agoinline HRESULT Present(IDXGISwapChain* pSwapChain, UINT SyncInterval, UINT Flags) { if (GlobalSetting::Unload) return oPresent(pSwapChain, SyncInterval, Flags); static auto bMakeOnce = [&]->bool { if (FAILED(pSwapChain->GetDevice(__uuidof(ID3D11Device), (void**)&pDevice))) { return false; } pDevice->GetImmediateContext(&pContext); DXGI_SWAP_CHAIN_DESC sd; pSwapChain->GetDesc(&sd); hWnd = sd.OutputWindow; ID3D11Texture2D* pBackBuffer = NULL; pSwapChain->GetBuffer(0, __uuidof(ID3D11Texture2D), (LPVOID*)&pBackBuffer); D3D11_RENDER_TARGET_VIEW_DESC desc = {}; desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; desc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2D; pDevice->CreateRenderTargetView(pBackBuffer, &desc, &mainRenderTargetView); pBackBuffer->Release(); oWndProc = (WNDPROC)SetWindowLongPtr(hWnd, GWLP_WNDPROC, (LONG_PTR)WndProc); ImGui::CreateContext(); ImGui::GetIO().IniFilename = nullptr; ImGui::GetIO().LogFilename = nullptr; ImGui::GetStyle().FrameRounding = 3.0f; ImGui::GetStyle().WindowRounding = 2.0f; ImGui::GetStyle().GrabRounding = 2.0f; ImGui::GetStyle().WindowRounding = 3.0f; ImGui::GetStyle().WindowTitleAlign = { 0.5f ,0.5f }; {
ImGui_ImplDX11_RenderDrawData(ImGui::GetDrawData());return oPresent(pSwapChain, SyncInterval, Flags);}修正ImplDX9
KierinTendler5 days agoits just a white screen
Cryokinesis5 days agowowie
2928715 days agodoesnt work
2928715 days agohi
shaltaipsx6 days agof
piliulia-liulia6 days agoкпкьпоктоаиплк