Giter Club home page Giter Club logo

Comments (6)

SantoshKumarRavi avatar SantoshKumarRavi commented on June 12, 2024

i tried alias too.

import { LLMonitorHandler as LunaryHandler } from 'langchain/callbacks/handlers/llmonitor';

but it does not show "appId " attribute in LunaryHandler class.
which langchain version suited for this ?

from lunary.

vincelwt avatar vincelwt commented on June 12, 2024

Hi @SantoshKumarRavi
Sorry about that, we're still waiting on Langchain to merge the PR with the name update. We should have waited before updating the docs and will revert in the meantime.

The alias like you did should work. Might be a typescript error, otherwise does setting LLMONITOR_APP_ID as an env variable work ?

from lunary.

SantoshKumarRavi avatar SantoshKumarRavi commented on June 12, 2024

thanks for the quick reply @vincelwt

I got llmonitor not found error, and i installed llmonitor manually with npm. now this error gone.

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'llmonitor' imported from D:\chatGPT-Max-Prototype\node_modules\@langchain\community\dist\callbacks\handlers\llmonitor.js
    at packageResolve (node:internal/modules/esm/resolve:844:9)
    at moduleResolve (node:internal/modules/esm/resolve:901:20)

from lunary.

SantoshKumarRavi avatar SantoshKumarRavi commented on June 12, 2024

i will check with each user analytics

from lunary.

SantoshKumarRavi avatar SantoshKumarRavi commented on June 12, 2024

i am able to see my user usage in dash board .
is there any api for getting each user usage separately like if i pass userID, i will get those user result ?

@vincelwt i saw the docs. i think it is not there .

from lunary.

vincelwt avatar vincelwt commented on June 12, 2024

Hi! Sorry for the delay.
The correct way to import for langchain now is like this with the latest version of the lunary nom module:

import { LunaryHandler } from "lunary/langchain"

We currently don't have an ability to filter by user id directly in the API but it's coming very soon! Thanks

from lunary.

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.