Coder Social home page Coder Social logo

Error in implementing in nodejs about ai HOT 6 OPEN

KrishnaCodez avatar KrishnaCodez commented on July 25, 2024
Error in implementing in nodejs

from ai.

Comments (6)

MaxLeiter avatar MaxLeiter commented on July 25, 2024

Can you please share your typescript version as well? Updating it may resolve this

from ai.

KrishnaCodez avatar KrishnaCodez commented on July 25, 2024

my ts version is "typescript": "^5.1.6"

and

tsconfig.json file :-
{
"compilerOptions": {
"module": "NodeNext",
"moduleResolution": "NodeNext",
"target": "ES2022",
"sourceMap": true,
"outDir": "dist",
"allowSyntheticDefaultImports": true
},
"include": ["src/**/*.ts", "src/index.ts"]
}

from ai.

lgrammel avatar lgrammel commented on July 25, 2024

Can you share a github repository with a minimal reproduction? I can't reproduce the issue

from ai.

KrishnaCodez avatar KrishnaCodez commented on July 25, 2024

good to see response from you... here is my repo i have used turbo monorepo i have been trying to implement ai in backend.... for security reason i have removed my frontend folder

also i switch to goggle provider but same error

/../node_modules/@ai-sdk/provider-utils/dist/index.d.ts(134,5): error TS2502: 'fetch' is referenced directly or indirectly in its own type annotation.
[0] ../../node_modules/@ai-sdk/provider-utils/dist/index.d.ts(149,5): error TS2502: 'fetch' is referenced directly or indirectly in its own type annotation.
[0] ../../node_modules/ai/dist/index.d.ts(8,33): error TS2307: Cannot find module 'openai/lib/AssistantStream' or its corresponding type declarations.
[0] ../../node_modules/ai/dist/index.d.ts(9,21): error TS2307: Cannot find module 'openai/resources/beta/threads/runs/runs' or its corresponding type declarations.
[0]

from ai.

lgrammel avatar lgrammel commented on July 25, 2024

@KrishnaCodez i tried your example, but i can't run yarn or another package manager successfully bc it fails to find @repo/eslint-config

from ai.

KrishnaCodez avatar KrishnaCodez commented on July 25, 2024

@lgrammel i republished repo here is the link i am using ai function in src/controller/chat-controller

from ai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.