Comments (4)
@uprg - Thank you for your patience. Are you still having an issue with this? My initial guess to the cause of the problem is with Emulator which depends Web Chat. Web Chat, at this point, is not setup to work with streaming responses like those generated from something like ChatGPT. What is more, Emulator is using an older version of Web Chat. This needs to be updated to current version, however there is no ETA on that, at the moment.
If you use another client that isn't Web Chat based, does the issue persist there?
If you perform logging in App.py on the if...else
statement, are you certain it is accurately filtering the incoming text between questions and non-questions?
To that end, since it is an echo bot, is it repeating responses because the text in both the original message as well as in the echoed response are virtually the same?
from botbuilder-python.
@stevkan Thank you for responding.
-
Yes the messages are getting correctly identified for if they are a question or if they are not.
-
The user request message and response message are not same.
-
The issue isn't resolved but we have stopped further development because of the two times response issue.
from botbuilder-python.
@uprg - Ok, I will attempt a repro of the issue using the code above, providing I'm not missing anything.
from botbuilder-python.
There isn't enough info here to make a firm determination. However, I question how this is done. Typically, the 'message' implementation would just call 'process_activity'. The the ActivityHandler (the bot) would handle the business logic.
Given:
if status["isQuestion"] == False:
body["text"] = status["text"]
activity = Activity().deserialize(body)
auth_header = req.headers["Authorization"] if "Authorization" in req.headers else ""
await ADAPTER.process_activity(activity, auth_header, BOT.on_turn)
else:
callOpenAI(status["text"])
body["text"] = status["text"]
activity = Activity().deserialize(body)
auth_header = req.headers["Authorization"] if "Authorization" in req.headers else ""
await ADAPTER.process_activity(activity, auth_header, BOT.on_turn)
Whatever 'callOpenAI' does would not stop the EchoBot.on_message_activity from executing.
- isQuestion == False: EchoBot sends back (echo's) whatever the user sent
- isQuestion == true: Something happens is 'callOpenAI', then EchoBot sends back whatever the user sent
Check: The indentation on the line with 'callOpenAI'
from botbuilder-python.
Related Issues (20)
- port: CertificateServiceClientCredentialsFactory
- Ability to pass BotFrameworkConnectorConfiguration into ConfigurationBotFrameworkAuthentication
- Add AllowedCallersClaimsValidator, AllowedSkillsClaimsValidator
- ESRP in build pipelines HOT 1
- aiohttp.web_exceptions.HTTPNotFound: Not Found HOT 7
- Recommended change to 3.8.6 or above HOT 2
- CloudAdapter' object has no attribute 'create_connector_client' HOT 13
- Add connect_named_pipe method to CloudAdapter in support of DirectLine Speech
- Can't deploy echo-bot.py. ModuleNotFoundError: No module named 'aiohttp' HOT 3
- CVE-2020-22083 security vulnerability in botbuilder-python SDK HOT 2
- botbuilder-integration-aiohttp - Python 3.12 compatibility HOT 4
- TeamsChannelAccount model missing aadObjectId
- BotBuilder-Python SSO not working HOT 5
- SSO: AttributeError: 'CloudAdapter' object has no attribute 'exchange_token' HOT 2
- Occasional unexpected ConversationNotFound
- AttributeError: 'CloudAdapter' object has no attribute 'sign_out_user' HOT 4
- Starting from 4.15.0 - <Request POST /api/messages > has failed with exception: KeyError('access_token') HOT 3
- Need to upgrade aiohttp dependency to 3.9.4 HOT 1
- use managed identity in Python bot HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botbuilder-python.