kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
![]() |
||
---|---|---|
.github | ||
.husky | ||
examples | ||
src | ||
test | ||
.env.example | ||
.gitignore | ||
.npmrc | ||
.prettierignore | ||
.prettierrc.cjs | ||
license | ||
package.json | ||
pnpm-lock.yaml | ||
readme.md | ||
tsconfig.json | ||
tsup.config.ts |
readme.md
Agentic
TODO
Intro
TODO
TODO
https://github.com/colinhacks/zod#writing-generic-functions
Use Cases
https://platform.openai.com/examples
- text completion
- text generation
- text classification
- https://platform.openai.com/docs/guides/completion/classification
- https://docs.cohere.com/docs/text-classification-with-classify
- special cases
- content moderation
- language detection
- conversation
- transformation
- translation
- conversion
- summarization
- completion
- factual responses
- chat completion
- entity extraction
- reranking
// take in a query and a list of texts and produces an ordered array with each text assigned a relevance score. // generate JSON conforming to a zod schema // generate a string conforming to a zod schema // generate TS code and ensure it is valid syntax + valid exports // generate HTML and ensure it parses correctly // primitives (boolean, number, z.coerce.date, string) // classifier (enum) // CSV
// retry strategies
// separate the prompt formatting from the inference call?
License
MIT © Travis Fischer
If you found this project interesting, please consider sponsoring me or following me on twitter