You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sarah-widder@iseabock The problem appears to be in app.py in stream_without_data() in this code:
def stream_without_data(response, history_metadata={}):
responseText = ""
for line in response:
responseText should be inside the loop and not outside. What appears to be happening is deltaText is returning 'None' at the end of the streamed output and the value for responseText is not being changed, and so the value from the last loop is being reused and so you get the duplicate.
If you wanted to be paranoid, it may make sense to explicitly initialize both reponseText and deltaText at the start of the loop, e.g.
def stream_without_data(response, history_metadata={}):
for line in response:
responseText = ""
deltaText = ""
Responses in the Web App contain double punctuation.
Example:
In the Azure Open AI Studio Chat Playground, responses do NOT contain the double punctuation. For example:
Happens for all punctuation types from what I can see, not just periods.
The text was updated successfully, but these errors were encountered: