-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Description
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:

Then I tried in the python code
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
Metadata
Metadata
Assignees
Labels
No labels
