Git Product home page Git Product logo

Comments (4)

tuhahaha avatar tuhahaha commented on June 12, 2024

Hello, we have implemented the process of canceling browsing items. Perhaps you can refresh the page to see if the browsing item you cancelled still shows a checked status. If it is not checked, it indicates that the operation is correct. If it is checked, please paste the debugging information here. Thank you.

from qwen-agent.

wangyanbn avatar wangyanbn commented on June 12, 2024

Great job! @tuhahaha
I have found the codes about browsing item check/uncheck processing in main.js

The ip is fixed as 127.0.0.1, if the service is on other machine, this will cause network error.
When my service is on my local machine, if I use 127.0.0.1 to access the app page, this works fine;
But when I access the app page with the machine's real ip, the js fetch of http://127.0.0.1:7866/endpoint will cause CORS error.
I changed the 127.0.0.1 as real page ip in main.js ( use location.hostname), it is still CORS error. The allow_origins of http://0.0.0.0 seems doesn't work.

When I add the real machine ip into the allow_origins , it is ok now now.
I don't know well about the fastapi CORSMiddleware, maybe there is a general config for it (no need adding the real machine ip).

from qwen-agent.

tuhahaha avatar tuhahaha commented on June 12, 2024

Thank you for your suggestion. I am modifying the code to make it more suitable for remote server scenarios. Additionally, if your server is remote, the current version does not support uploading and analyzing local PDF files. Web pages and online PDFs are acceptable. (The main reason is that the Google Extension have some limitations when processing local file uploads.) For this situation, we have implemented an interface for directly uploading PDF files, which may soon become available.

from qwen-agent.

tuhahaha avatar tuhahaha commented on June 12, 2024

@wangyanbn Hello , we have pushed the code to solve this problem. Please pull the latest code and update the Google Extension.

from qwen-agent.

Related Issues (20)

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.