Issues with control characters. #429
-
Is your feature request related to a problem? Please describe. This makes instructor fail on errors like this: Describe the solution you'd like Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
interesting this might be more of a pydantic issue than instructor. maybe it should come from a different strict mode? |
Beta Was this translation helpful? Give feedback.
-
@JoelKronander Let see if this work, can you verify that control characters work with strict mode is turned off? |
Beta Was this translation helpful? Give feedback.
-
@jxnl I was not able to get this working without removing the newlines manually first. |
Beta Was this translation helpful? Give feedback.
-
this is super dumb but sometimes you gotta remind it to escape new lines in the prompt, acuse the control characters are an issue unless you use the latest models. |
Beta Was this translation helpful? Give feedback.
-
Indeed. My best fix was the following prompt addition with
|
Beta Was this translation helpful? Give feedback.
Indeed. My best fix was the following prompt addition with
gpt-4-turbo-preview
YMMV.