eyurtsev / kor

LLM(😽)
https://eyurtsev.github.io/kor/
MIT License
1.57k stars 88 forks source link

Dict type for Pydantic schema #246

Open bogdanaks opened 8 months ago

bogdanaks commented 8 months ago

Hello, i cant use type Dict from typing I get the error NotImplementedError: Unsupported type: typing.Dict[str, str]

And also if i use (class) dict, i get error Input should be a valid string [type=string_type, input_value={'English': 'B1', 'Russian': 'NATIVE'}, input_type=dict]

How can I use this type to construct an object with previously unknown keys and values?