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

Potential TS compiler nit in Getting Started - AxGenIn / textToSummarize #75

Open
dwabyick opened this issue Dec 21, 2024 · 0 comments
Open

Comments

@dwabyick
Copy link

  • I'm submitting a ...
    [x] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    This might be a Typescript config issue with a fresh project, but when I tried the getting started, I was getting an error displayed in my editor. When I ran bun example.ts it worked just fine.

image

I would have thought TS would have inferred the type. In any case, the following made it go away.

const gen = new AxChainOfThought<{ textToSummarize: string }>(`textToSummarize -> shortSummary "summarize in 5 to 10 words"`);
  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

I verified my Typescript was up to date, etc. ^5.7.2

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

No branches or pull requests

1 participant