Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response Returned by poe api is less than web #69

Open
tuanv2t opened this issue Dec 26, 2023 · 6 comments
Open

Response Returned by poe api is less than web #69

tuanv2t opened this issue Dec 26, 2023 · 6 comments

Comments

@tuanv2t
Copy link

tuanv2t commented Dec 26, 2023

I create a bot https://poe.com/BotNhaThuocLongChau2
Then I upload some pdf files to my bot.
And also purchased a subscription to get API key
Then I tried to query from python code with the question "Có bán Vitamin B không" to compare response between web and api

For web I received the good response:
poe web - co ban vitamin b khong

Then I tried in the python code

poe- api - less response

I compared the response and surprised that the web returned much more information than API.
I don't know if I miss something in my code .

It's ok to share my python api code here


import asyncio
import fastapi_poe as fp


async def get_responses(api_key, messages):
    global last_reply
    last_reply=""
    async for partial in fp.get_bot_response(messages=messages, bot_name="BotNhaThuocLongChau2", api_key="[my_api_key]",temperature=0.0):

        last_reply += partial.text

api_key = "[my_api_key]"
message = fp.ProtocolMessage(role="user", content="Có bán Vitamin B không")

asyncio.run(get_responses("[my_api_key]", [message]))


print(last_reply)

Please advise

@anmolsingh95
Copy link
Contributor

Thanks for the report @tuanv2t . We are investigating this and will let you know as soon as we understand this more.

@tuanv2t
Copy link
Author

tuanv2t commented Jan 9, 2024

Thank you @anmolsingh95 , fixing this issue can make poe api more power

@tuanv2t
Copy link
Author

tuanv2t commented Jan 22, 2024

hi @anmolsingh95 , do you have any idea.

@anmolsingh95
Copy link
Contributor

Hi @tuanv2t, we have identified the issue and are still working on a resolution. I can share as soon as we have an update.

@anmolsingh95
Copy link
Contributor

@tuanv2t, can you give this a shot now?

@tuanv2t
Copy link
Author

tuanv2t commented Feb 26, 2024

Hi @anmolsingh95 ,
My Bot is still working at https://poe.com/BotNhaThuocLongChau2
But I already paused my subscription then I can see the result when using python api in the previous image.

The content is in Vietnamese
You can try this question: "Có bán Vitamin B không"

Run on web
Then run on the api ( when you debug ) and compare two results ( as my original post )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@anmolsingh95 @tuanv2t and others