I think it an correct approach, that you limit inputs to an enum. But the problem is gpt4 is not respecting the limitation
Maybe translate to english first, where it has more experience?
Or separate out the calls, one call for the index, and then a separate call for the fund. Actually, not every fund is on every index, right?