araa-search icon indicating copy to clipboard operation
araa-search copied to clipboard

Feature Request

Open DavidVeevt opened this issue 1 year ago • 23 comments

Hi, I have a feature request for Tailsx. Is there anyway that you develop so that it has an AI chat function that uses gpt-3.5-turbo. Also is there any possibility to make the design similar to you.com or bing.com? AI Inspiration: You.com Chat and Bing Chat. Design Inspiration: You.com, Bing.com and Neeva.com

DavidVeevt avatar May 24 '23 06:05 DavidVeevt

i am looking into adding chatgpt soon

Extravi avatar May 28 '23 00:05 Extravi

I don't have a working API key for openai and it cost money so I can't develop it sorry.

Extravi avatar Jul 07 '23 20:07 Extravi

Screenshot from 2023-07-07 16 02 17

Extravi avatar Jul 07 '23 20:07 Extravi

You can use brave's summarizer. This is the URL for its api: https://search.brave.com/api/summarizer?key=query:us:en

It's quite good, since it gives references to what it's saying, and if it knows something's wrong, it wont give any result.

Also, its terms of use seem okay too. This is all I could find that could be somewhat related to API use, but Tailsx doesn't have a lot of users, so its load wont be 'unreasonable.'

Further, you shall not (directly or indirectly): 
(i) take any action that imposes or may impose an unreasonable or disproportionately large load on Brave’s (or its third party providers’) infrastructure; or
(ii) interfere or attempt to interfere with the proper working of the Service or any activities conducted on the Service; 
(iii) bypass any measures Brave may use to prevent or restrict access to the Service (or parts thereof).

amogusussy avatar Jul 07 '23 22:07 amogusussy

You can use brave's summarizer. This is the URL for its api: https://search.brave.com/api/summarizer?key=query:us:en

It's quite good, since it gives references to what it's saying, and if it knows something's wrong, it wont give any result.

Also, its terms of use seem okay too. This is all I could find that could be somewhat related to API use, but Tailsx doesn't have a lot of users, so its load wont be 'unreasonable.'

Further, you shall not (directly or indirectly): 
(i) take any action that imposes or may impose an unreasonable or disproportionately large load on Brave’s (or its third party providers’) infrastructure; or
(ii) interfere or attempt to interfere with the proper working of the Service or any activities conducted on the Service; 
(iii) bypass any measures Brave may use to prevent or restrict access to the Service (or parts thereof).

i will use this instead

Extravi avatar Jul 07 '23 22:07 Extravi

The requests can take a lot of time though, so it's probably best to implement it as a javascript fetch, rather than preloaded on every page.

amogusussy avatar Jul 07 '23 23:07 amogusussy

do you have revolt.chat or something amogusussy

Extravi avatar Jul 07 '23 23:07 Extravi

I don't right now, but I can make one tomorrow (I'm about to go to sleep) if you want.

amogusussy avatar Jul 07 '23 23:07 amogusussy

i made a key but i dont know how to use it https://search.brave.com/api/summarizer?key=mykey&query=firefox

Extravi avatar Jul 07 '23 23:07 Extravi

{"type":"summarizer","status":"failed","results":[]}

Extravi avatar Jul 07 '23 23:07 Extravi

@Extravi try setting key to the search query

TEMtheLEM avatar Jul 07 '23 23:07 TEMtheLEM

It only allows certain types of queries.

Try searching "what is the periodic table". That query gives a response for me.

amogusussy avatar Jul 07 '23 23:07 amogusussy

Also, I don't think you need a key. Not including a key would make self hosting a lot easier.

amogusussy avatar Jul 07 '23 23:07 amogusussy

https://search.brave.com/api/summarizer?key=what%20is%20the%20periodic%20table:us:en

{"type":"summarizer","status":"failed","results":[]}

Extravi avatar Jul 07 '23 23:07 Extravi

Try setting the user agent header.

Also, you could try searching it normally in search.brave.com, and see if any box that says summariser shows up. It might only be allowed in certain countries, due to new ai regulations.

amogusussy avatar Jul 08 '23 00:07 amogusussy

I think I will scrap this idea. The API isn't reliable when I could focus on other things.

Extravi avatar Jul 08 '23 00:07 Extravi

It works sometimes and sometimes it won't.

Extravi avatar Jul 08 '23 00:07 Extravi

I am not sure about it because how they get the API keys does not seem right and could be breaking OpenAI's TOS.

Extravi avatar Jul 15 '23 00:07 Extravi

like i dont want to get this project taken down by openai

Extravi avatar Jul 15 '23 00:07 Extravi

so i likely wont be using that

Extravi avatar Jul 15 '23 00:07 Extravi

i might use something else

Extravi avatar Jul 15 '23 00:07 Extravi

it's something that will happen at some point

Extravi avatar Jan 26 '24 22:01 Extravi

I'm working on adding asynchronous support using httpx first

Extravi avatar Jan 26 '24 22:01 Extravi