-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[typescript] Save output.data with OutputData type instead of pure st…
…ring This will make it easier for Ryan to parse because he just has to check the `.kind` field and if it's string, he knows that the string is meant to be string only. I also kept the existing form where it will still work if we ONLY pass in string, in which case we'd just assume it's supposed to be in pure string form I also added function call support to this diff for `openai.ts`. Sorry yea I know it's a bigger diff. ##Test plan Pass automated tests, running these commands from `aiconfig` top-level dir ``` npx ts-node typescript/demo/function-call-stream.ts npx ts-node typescript/demo/demo.ts npx ts-node typescript/demo/test-hf.ts ``` Also run `yarn test` from typescript dir
- Loading branch information
1 parent
d35448f
commit e8223f3
Showing
6 changed files
with
209 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.