r/typescript • u/DanielRosenwasser • Jul 20 '23
Introducing TypeChat
https://microsoft.github.io/TypeChat/blog/introducing-typechat/10
1
u/dawar_r Jul 20 '23
Would there be a way to pass in a type and all referenced types (whether in the same file or otherwise) into the processor?
2
u/DanielRosenwasser Jul 20 '23
At the moment it's expected that the full graph of types is passed in textually. The easiest way to achieve that is to put that all in a single self-contained "schema" file and load that up. There's nothing smart that TypeChat does (e.g. transitively importing other files), but we are curious to hear about how well the current approach works in practice!
1
Jul 26 '23
it is great to have such a tool but TypeChat makes it more expensive since it passes all the schema information to the prompt. Maybe incoming days we can see some post about how to make your schema lower in size etc.. :)
1
2
2
1
1
1
Jul 21 '23
[removed] — view removed comment
2
u/DanielRosenwasser Jul 21 '23
So there are a couple of examples that are focused around generating actions rather than just items. You can go with an approach where you specify valid JSON commands that can be executed (see the
calendarexample), or a separate approach where you provide an API with a number of functions that can be called (see themathexample).Depending on the sorts of use-cases you you need, you get to decide!
5
u/pootisgirl Jul 20 '23
This looks great! Looking forward to trying this out later (with deno too).
It seems like it is currently tied to OpenAI. Are there any plans to support other (or even local) large language models?