reply2future / xExtension-NewsAssistant

An extension to summarize the feeds of FreshRSS using GPT.
https://github.com/FreshRSS/FreshRSS
The Unlicense
41 stars 7 forks source link

[feature]OPENAI_API_BASE support #20

Closed VectorZhao closed 1 month ago

VectorZhao commented 9 months ago

Please add support for a third-party BASE URL. Allow users to customize the base URL at their discretion.

reply2future commented 9 months ago

Like what this extension used URL is https://api.openai.com/v1/chat/completions, you would like to setup the https://api.openai.com to other domain? Does it use the same request and response structure as openai?

VectorZhao commented 9 months ago

Yes, just like the https://api.openai.com, same structure with openai.

I am using the one-api.

reply2future commented 9 months ago

you could try this new version.

VectorZhao commented 9 months ago

Not work for me.

image image
VectorZhao commented 9 months ago

image

reply2future commented 9 months ago

I fixed the bug and passed the test with one-api using the v0.10

VectorZhao commented 9 months ago

Cheers, worked!

I have a few suggestions:

  1. Present the summary content in a list format. Can you make the summary content in the form of a list to enhance readability? I added "summary the contents in bullet points" in the prompt, but it didn't work.
  2. Include hyperlinks within the summary content to facilitate navigation to desired entries.
  3. I am unsure if it is feasible to implement scheduled summarization and subsequently push the summarized content to a Telegram bot.
VectorZhao commented 9 months ago

I believe another highly beneficial feature would be the ability for ChatGPT to compile the desired content into a designated folder by means of prompting words. Although FreshRSS may not have the concept of folders, tags can be added instead. For instance, ChatGPT could read the titles and contents of the subscribed feed and identify whether a particular subscription is relevant to machine learning. If it is, a tag of "machine learning" could be added.

reply2future commented 1 month ago

Cheers, worked!

I have a few suggestions:

  1. Present the summary content in a list format. Can you make the summary content in the form of a list to enhance readability? I added "summary the contents in bullet points" in the prompt, but it didn't work.
  2. Include hyperlinks within the summary content to facilitate navigation to desired entries.
  3. I am unsure if it is feasible to implement scheduled summarization and subsequently push the summarized content to a Telegram bot.
  1. This version fixed it
  2. Create a new issue to track it #30
  3. Create a new issue to track it #31

Thanks for your great idea.

reply2future commented 1 month ago

I believe another highly beneficial feature would be the ability for ChatGPT to compile the desired content into a designated folder by means of prompting words. Although FreshRSS may not have the concept of folders, tags can be added instead. For instance, ChatGPT could read the titles and contents of the subscribed feed and identify whether a particular subscription is relevant to machine learning. If it is, a tag of "machine learning" could be added.

Track at #32