TypeChat
TypeChat copied to clipboard
TypeChat is a library that makes it easy to build natural language interfaces using types.
This PR simply move from the Completions API to the newer Responses API endpoint (cf. https://platform.openai.com/docs/guides/migrate-to-responses). They should be fully retro-compatible due to the messages' nature (cf. https://platform.openai.com/docs/guides/migrate-to-responses?update-item-definitions=responses&update-multiturn=responses#migrating-from-chat-completions).
The current TypeScript validator in TypeChat sometimes truncates error messages, for example: > Type '{ id: number; title: string; }' is missing the following properties from type 'Doc': slug, abstract,...