Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoints & AI e2e #4734

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Endpoints & AI e2e #4734

wants to merge 12 commits into from

Conversation

bunsenstraat
Copy link
Collaborator

@bunsenstraat bunsenstraat commented Apr 17, 2024

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:

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

Copy link

netlify bot commented Apr 17, 2024

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

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

@bunsenstraat bunsenstraat changed the title Endpoints squashed Endpoints & AI e2e Apr 17, 2024
@STetsing STetsing self-requested a review April 17, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants