Giter Site home page Giter Site logo

ashishagarwal2023 / freegpt.js.org Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 1.0 1.17 MB

Light-weight powerful FREE ChatGPT Library for JavaScript

Home Page: https://freegpt.js.org/

License: MIT License

CSS 56.72% JavaScript 19.45% HTML 23.83%
api chatgpt chatgpt-api free freegpt gpt javascript jsdelivr lightweight freegptjs

freegpt.js.org's Introduction

Banner

Hi, I'm Ashish Agarwal

Tip

Check out my guestbook and sign it now! Sign now on my portfolio!

Portfolio↗️

GitHub Widget

GitHub followers GitHub User's stars Coding

About Me

portfolio


Skills

RHTML5CSS3JavaScriptPHPPythonBashBootstrapExpress.jsjQueryNPMNodeJSMySQLCanvaFigmaGimp Gnu Image Manipulation Program

πŸ’» Workspace:



Dell Vostro 2520, originally equipped with 2GB RAM, HDD and Windows 7. I upgraded to SSD and 10GB RAM as I could afford. Mine only, a cheap laptop like 8 years old. _You know I wrote books? On this cheap laptop, yeah. You can find my books on google!_


Github Stats





Mark streak

ashishagarwal2023


πŸ˜‚ Here is a random joke that'll make you laugh!

Jokes Card


⚑ Recent Activity

  1. ❌ Closed PR #9840 in Rapptz/discord.py
  2. πŸ’ͺ Opened PR #9840 in Rapptz/discord.py
  3. πŸ—£ Commented on #1 in CommunityPro/portfolio-react
  4. πŸ—£ Commented on #1 in CommunityPro/portfolio-react
  5. πŸ—£ Commented on #7482 in nextauthjs/next-auth

Here are some 🦜ParrotsπŸ˜‚:



Show some ❀️ by starring some of the repositories!

Skills

freegpt.js.org's People

Contributors

ashishagarwal2023 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

anil-turk saidhn

freegpt.js.org's Issues

The sample code is not working, Access to fetch from origin 'null' has been blocked by CORS policy

I used this sample code:

<!DOCTYPE html>
<html lang="en">
<head>
<!-- Load from jsDelivr -->
<script src="https://cdn.jsdelivr.net/gh/ashishagarwal2023/[email protected]/src/freegpt.min.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My demo page</title>
</head>
<body>
<script>
(async () => {
  let response = await gpt.ask("Explain variables in javascript");
  console.log(response); // you got it!
})();
</script>
</body>
</html>

on my local pc chrome browser, but that did not work and got this javascript errors:

Access to fetch at 'https://you.com/api/streamingSearch?q=Explain%20variables%20in%20javascript&page=1&count=10&domain=youchat' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
freegpt.js:10 
        
        
       GET https://you.com/api/streamingSearch?q=Explain%20variables%20in%20javascript&page=1&count=10&domain=youchat net::ERR_FAILED 403 (Forbidden)
(anonymous) @ freegpt.js:10
ask @ freegpt.js:68
(anonymous) @ testGPT.html:13
(anonymous) @ testGPT.html:15
freegpt.js:15 Bot failed to fetch response: TypeError: Failed to fetch
    at freegpt.js:10:30
    at Object.ask (freegpt.js:68:18)
    at testGPT.html:13:28
    at testGPT.html:15:3

image

I think this is related to cloudflare protection. even with javascript client it still not working, is there anyway to bypass it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.