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

No summary generated #6

Open sean89503 opened 1 year ago

sean89503 commented 1 year ago

i have everything setup correct and i can see the api is being used via openIA's portal but nothing is summarized

image image

reply2future commented 1 year ago

First of all you could set the developement environment for logging so you could see which contents are sent to the openai;

Second the project is just send the title of the article to the openai like below: https://github.com/reply2future/xExtension-NewsAssistant/blob/b1e2d2f4626db7c8047cb507c177a4363c2d2956/Controllers/assistantController.php#L100-L110

I would like to add the new configuration to select which content to send.

BTW, would you like to capture the UI of the extension configuration?

reply2future commented 1 year ago

I have added the field configuration so you could select title or content to the openai;

I have made the error response of calling openai api more friendly and display the error message to the html page.

sean89503 commented 1 year ago

Thank you! that helps image

sean89503 commented 1 year ago

Do you think we can config it to point to a local install of LLaMA?

reply2future commented 1 year ago

Do you think we can config it to point to a local install of LLaMA?

Okay, we need to standardize the LLaMA's invocation API interface. In other words, we want LLaMA to be able to make HTTP calls and configure the request address in this plugin. The plugin will only handle the requests and not handle the encapsulation of the interface.

There are some project doing this thing:

  1. https://github.com/keldenl/gpt-llama.cpp
  2. https://cocktailpeanut.github.io/dalai/#/?id=dalai
Whichbfj28 commented 9 months ago

Do you think we can config it to point to a local install of LLaMA?

This is a good idea!

TeunvandeBerg commented 8 months ago

Related to this topic so posting here. A summary is generated but it is incomplete:

Naamloos

reply2future commented 3 months ago

Related to this topic so posting here. A summary is generated but it is incomplete:

Naamloos