Skip to content

Commit

Permalink
chore(exports): export OAIExtended type (#130)
Browse files Browse the repository at this point in the history
Co-authored-by: Dimitri Kennedy <[email protected]>
  • Loading branch information
mattzcarey and roodboi authored Mar 6, 2024
1 parent f65672c commit f365a41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dsl/maybe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type Maybe<T extends z.ZodTypeAny> = z.ZodObject<{
}>

/**
* Create a Maybe model for a given Zod schema. This allows you to return a model that includes fields for `result`, `error`, and `message` for sitatations where the data may not be present in the context.
* Create a Maybe model for a given Zod schema. This allows you to return a model that includes fields for `result`, `error`, and `message` for situations where the data may not be present in the context.
* @param schema The Zod schema to wrap with maybe.
* @returns A Zod schema that includes fields for `result`, `error`, and `message`.
*/
Expand Down
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import Instructor from "./instructor"
import Instructor, { OAIClientExtended } from "./instructor"

export { type OAIClientExtended }
export * from "./types"

export default Instructor

0 comments on commit f365a41

Please sign in to comment.