instructor-js
instructor-js copied to clipboard
structured extraction for llms
I believe I'm following the documentation exactly, but receiving a typing error. Am I doing something wrong? ``` Type 'Anthropic & { [key: string]: unknown; chat: { completions: { create:...
Where is this system prompt coming from and can it be customized? ``` Given a user prompt, you will return fully valid JSON based on the following description and schema....
Given the following schema and response model the system prompt is given the schema description twice: ``` export const ResponseSchema = z .object({ property: z .string() .describe( "A string property"...
I know it's possible to log it with debug mode, but we write our request/response messages to a database (whether they succeed or fail). Is it possible to get the...
Cohere now has support for function calling, and the Command-R model looks really good (especially pricing). https://docs.cohere.com/docs/tool-use
Would it be possible to have this library work with Azure's OpenAI client as well? https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/switching-endpoints
theres a bunch of examples in the python version, including documentation here https://jxnl.github.io/instructor/examples/ here are all the examples, only a few of them are interesting so use the cookbooks to...
When compiling I am getting the following error: ``` node_modules/@instructor-ai/instructor/dist/index.d.cts:103:129 - error TS2683: 'this' implicitly has type 'any' because it does not have a type annotation. 103 }>(params: P, requestOptions?:...
I'm trying to use LLMs to generate OpenAPI schemas, and running into some roadblocks trying to use instructor. It mainly boils down to the fact that zod + typescript types...
Fixed a few significant errors that prevent the code from being usable. - corrected import string for instructor. - `baseUrl` changed to `baseURL` to match the openai type signature. -...