Test callbacks parameter of LangChain.js to get the token usage. put OPENAI_API_KEY="" in .env and use VSCode launch to debug it. Completion models are supported but embedding models is not supported yet (even in Python LangChain)
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool