Comments (7)
EDIT: REDACTED
from just-read.
from just-read.
Hey Aidan. This is because the API that you're calling is returning HTML when Just Read is expecting JSON. The summarizer functionality was made for just OpenAI or things that respond with the same format.
I could update Just Read to allow for an arbitrary HTML response and have that be displayed directly within the Just Read view. Would that work for your use case?
By the way, you shouldn't share your key in public! I deleted the revision history for you. In the future, if you need to share a secure piece of information, something more private like email is better.
from just-read.
First of all, thank you for your reply, I believe the solution you provided can solve this problem. Really appreicately your greatwork, it's very useful to me and I look forward to your updates.
Will the update provide an option for users to decide whether to return HTML or JSON?
In addition, thank you for helping me hide the key. If there is a similar situation in the future, I will operate according to your suggestion.
from just-read.
Will the update provide an option for users to decide whether to return HTML or JSON?
Yeah, it will have to be something like that. It will take me some time to think through how to best handle this sort of thing.
from just-read.
When I attempt to use your service using the way that you provided, this is the response that I get:
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="logo.png"/><link rel="apple-touch-icon" href="/logo.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#ffffff"/><meta name="description" content="头顶冒火,OpenAI API 接口转发站。"/><title>头顶冒火 🤯</title><script defer="defer" src="/static/js/main.5a762519.js"></script><link href="/static/css/main.54631fc9.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
This loads a blank page. Even when I change the response to add the baseUrl
that you provide, it gives me this page, which is a 404 error:
As such, while I'm open to adding support for a generic HTML response for this feature, your use case, at least as is, doesn't make work. Unfortunately I don't have the time to try and figure out how to make this endpoint work, especially given it is all in Chinese, haha
from just-read.
The latest version of Just Read should handle a generic HTML response and put it inside of an iframe within the Just Read view. So I'm going to mark this request as completed.
Good luck figuring out how to get this service working correctly!
from just-read.
Related Issues (20)
- Option to remove floating icon to "add a comment" HOT 1
- RSS feed for shared pages HOT 2
- Share Article button not working HOT 8
- Removing highlight colour instead of text HOT 2
- Reddit is Borked HOT 2
- Add ChatGPT summarization on click HOT 21
- Works great but does not support 'Auto Copy' extension HOT 1
- icon menu ‘select content to read’ lost in ver5.3.1 HOT 1
- Coding section not support HOT 1
- Small SVG blown up to large white block HOT 3
- Code blocks are condensed into one line HOT 4
- Comic Dak Mode
- Wrong text extracted from page on defenseone.com HOT 2
- allow to specify the openai API endpoint base url HOT 2
- Just Read fails to open due to invalid HTML attribute HOT 5
- Theme switching doesn't work (6.0.4) HOT 2
- Please add missing LICENSE HOT 2
- Partial display HOT 1
- A div node is removed completely (not just suppressed) even with no CSS applied HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from just-read.