Skip to content
Open navbar menu
Sign UpLog In
Profile icon

Zahid Khawaja

@zahid
Atlanta, GA
Twitter
GitHub
  • GPT-4 Chat UI

    Cover page
    Made with Node.js

    Build 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 with gpt-3.5-turbo if you don't have early access to GPT-4. You can do this in pages/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)
    GraysonRivera2
    GraysonRivera2
    4 days ago

    WHATSSS UPPPPPPPPPPPPPPPPPPPPPP

    SIDDHARTHPILLA2
    SIDDHARTHPILLA2
    4 days ago

    hello

    ktnhng0989
    ktnhng0989
    5 days ago

    nihao

    ktnhng0989
    ktnhng0989
    5 days ago

    inline 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

    KierinTendler
    KierinTendler
    5 days ago

    its just a white screen

    Cryokinesis
    Cryokinesis
    5 days ago

    wowie

    292871
    292871
    5 days ago

    doesnt work

    292871
    292871
    5 days ago

    hi

    shaltaipsx
    shaltaipsx
    6 days ago

    f

    piliulia-liulia
    piliulia-liulia
    6 days ago

    кпкьпоктоаиплк

All Repls