TypeChat
TypeChat copied to clipboard
TypeChat is a library that makes it easy to build natural language interfaces using types.
This fixes #235 for Windows, where `import readline` doesn't work (nor is it needed).
For me, this works best with openai model gpt-3.5-turbo; gpt-4 seems worse (?!). Here's a sample session (no longer valid without history support) ``` PATH=/opt/homebrew/opt/ccache/libexec:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Users/guido/.vscode/extensions/ms-python.python-2024.4.1/python_files/deactivate/bash:/Users/guido/TypeChat/python/.venv/bin:/Library/Frameworks/Python.framework/Versions/3.13/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Users/guido/.nvm/versions/node/v19.8.1/bin:/opt/homebrew/opt/ccache/libexec:/opt/homebrew/bin The default interactive shell is...
This is my proposal to address #39. It also fixes the issue I flagged in #240 about the user input being repeated twice. I tried it with my demo from...
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10. Release notes Sourced from ejs's releases. v3.1.10 Version 3.1.10 Commits d3f807d Version 3.1.10 9ee26dd Mocha TDD e469741 Basic pollution protection 715e950 Merge pull request...
Attempt at resolving #242, added feature to utilize Python comment syntax instead of currently supported verbose `Annotated[Doc()]`-based comment style. The feature is currently implemented for `examples/math` but can be extended...
ChatGPT sometimes returns JSON with trailing spaces, which breaks the parser. The repair attempts do not take this into account. I've copied in the strip trailing comma function from here:...
In the [README.md](https://github.com/microsoft/TypeChat/blob/main/python/README.md) of the python subtree there's this sentence: > To learn more about TypeChat, visit the [documentation](https://microsoft.github.io/TypeChat) which includes more information on TypeChat and how to get started....
When I was writing my Python schema I noticed that I have to use a rather verbose syntax to add comments to a schema: ```py x: Annotated[int, Doc("X-coordinate of the...
We try to use keyless auth for all our samples, so if I were to use TypeChat in them, it'd need to support keyless auth, aka this constructor: openai_client =...