Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Model chat: prevent KeyError if no text in the observation #4089

Merged
merged 2 commits into from
Oct 14, 2021

Conversation

EricMichaelSmith
Copy link
Contributor

For model chat, don't throw an error right away if the observation is missing the 'text' field, but print a warning that may help at diagnosing what the problem is

Copy link
Contributor

@JackUrb JackUrb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug change makes sense to me.

@EricMichaelSmith EricMichaelSmith merged commit 1ab6dad into main Oct 14, 2021
@EricMichaelSmith EricMichaelSmith deleted the model-chat-key-error branch October 14, 2021 00:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants