-
-
Notifications
You must be signed in to change notification settings - Fork 526
AI responds with unnecessary info #232
Comments
help! i have the same problem |
Hello, Epiczhul이, zoomingspeed Could you please inform me of the version of the Bard API you are using that is experiencing this issue? Also, I would like to recommend a slight modification to your code as follows. The reason is that the API is designed to return complete information deliberately, and it is recommended to use either If you only pass the content, you will miss out on other important information. This includes various responses under 'choice' and 'conversation_id', which is crucial for maintaining the context of the conversation. Please try using the following. # AI TEST
@bot.slash_command(name="ai", description="Get a response from Google Bard's AI")
async def ai(ctx, *, text):
ai_response = bard.get_answer(text)
await ctx.defer()
await asyncio.sleep(30)
await ctx.followup.send(f"**AI RESPONSE MIGHT BE INACCURATE, WE ARE NOT RESPONSIBLE FOR INACCURATE RESPONSES FROM THE AI CHATBOT:**\n\n```{ai_response['content']}```") |
@dsdanielpark i did not think of this thank you, i have not tested it but if it does not work i will let you know. I do want to ask though, have you finished programming the auto rotating cookies and if it is done, will the cookies automatically be generated the minute we run our program or do we have to get a cookie first and place it, THEN it rotates? |
szv99 has implemented it, but it seems to involve inserting the token value initially, and then obtaining the cookie value that updates thereafter. Therefore, it might be a partial solution, but I think it would be difficult for the cookie to update completely automatically. Try asking szv99 about it. |
@dsdanielpark would this work on a proxy server? i use a server to host my discord bot and it runs a basic python environment. this is the host i use: https://divahosting.net/ |
You can use this behind a porxy examples. |
@dsdanielpark and if i did |
It still works under limited conditions, but does not operate when hosted on a server. Since it is implemented from the following package, I recommend examining the logic. In fact, the cookie auto-update logic that will be updated soon might be more effective. If you are interested, please take a look at the following PR. #235 |
Hi, I have been programming a Discord bot and I have always wanted to add artificial intelligence to it, and finding this repository was like a miracle to me. This works, but I have been having a couple of issues, including the cookies regenerating so the AI stops responding. However I saw an issue saying that dsdanielpark is going to program it this weekend. So my only issue is how the AI responds.
The AI actually responds when running the command and putting a prompt, but it gives me unnecessary information that I do not need. Here is the command and here is how it responds:
And here is the AI's response from a prompt greeting the AI...
Seeing this issue, I have dealt with an issue like this using the package "googletrans", but I found out that I can just put ".text", but for some reason it does not work with this package. Is there anyway I can make the AI respond only with the prompt response or is this how it just replies?
The text was updated successfully, but these errors were encountered: