chatgpt-api/docs/scratch.md

1.5 KiB

Client Design Philosophy

  • clients should be as minimal as possible
  • clients should use ky and zod where possible
  • clients should have a strongly-typed TS DX
  • clients should expose select methods via the @aiFunction(...) decorator
    • inputSchema zod schemas should be as minimal as possible with descriptions prompt engineered specifically for use with LLMs
  • clients and AIFunctions should be composable via AIFunctionSet
  • clients should work with all major TS AI SDKs

TODO