remix-project icon indicating copy to clipboard operation
remix-project copied to clipboard

Endpoints & AI e2e

Open bunsenstraat opened this issue 10 months ago • 1 comments

This exposes our server endpoints partially as a localhost server on CI allowing changes to the endpoints to be tested. Specifically AI functions

The general chat API has been mocked with a static response in order to not spam the API_KEY on CI.

These endpoints have been set locally:

        app.use('/jqgt', ipfsGatewayPlugin());
        app.use('/openai-gpt', openaigpt());
        app.use('/solcoder', solcoder());
        app.use('/completion', solcompletion());
        app.use('/gpt-chat', gptchat());
        app.use('/chat/completions', mockChat());

The others will go to the production server, like Vyper and so on.

To run locally:

  • yarn && yarn start:test
  • NX_API_URL=http://localhost:1024/ yarn serve

This starts a local test server allowing connection and serves the app with the local API URL

bunsenstraat avatar Apr 17 '24 07:04 bunsenstraat

Deploy Preview for remixproject failed. Why did it fail? →

Name Link
Latest commit b849be5c373dabde180535b7c43d917405659cfd
Latest deploy log https://app.netlify.com/sites/remixproject/deploys/66557affe668000008eb8f8f

netlify[bot] avatar Apr 17 '24 07:04 netlify[bot]