Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeDef -> MetaType #40

Merged
merged 3 commits into from
Dec 4, 2024
Merged

TypeDef -> MetaType #40

merged 3 commits into from
Dec 4, 2024

Conversation

harrysolovay
Copy link
Owner

Uses transform to produce a Type<Type<unknown>>.

const response_format_0 = ResponseFormat(
  "story_data_schema",
  T.MetaType,
)`Generate a type definition for an object that contains information about a fictional story world.`

const dynType = await openai.chat.completions
  .create({
    model: "gpt-4o-mini",
    messages: [{ role: "system", content: [] }],
    response_format: response_format_0,
  })
  .then(response_format_0.into)
  .then(dbg("MetaType"))

@harrysolovay harrysolovay merged commit e5abfb4 into main Dec 4, 2024
4 checks passed
@harrysolovay harrysolovay deleted the debug-util branch December 4, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant