Hello
I am using the API, and the AI is supposed to ask the user for a value (which must be within a range of 50-5000). My issue arises when I provide values higher than 1000; the AI indicates that the number is invalid and states that it must be within the range. When I insist, it keeps saying it is not within the range. Only when I explicitly state (for example) that 1200 is less than 5000 does it finally accept it. Or if I say 1199, it also accepts it.
hi, I am using API functions (which also include the maximum and minimum range) to retrieve this data. In the context, I specify that the range is 50-5000, but when the user provides the number 1200 (for example), the assistant recognizes it as a number greater than 5000.
It seems to me that when the User replies the response will go first through your code before the model where you could check the number logically in code.
If (50<1500 && 1500<5000) Proceed to next AI step supplying number
else Error Fallback