Closed dividedmind closed 3 weeks ago
@dividedmind I'm seeing errors like this in the log:
Failed to calculate number of tokens, falling back to approximate count Error: Unknown model
at getEncodingNameForModel (/Users/kgilpin/source/appland/appmap-js/node_modules/js-tiktoken/dist/lite.cjs:223:13)
at encodingForModel (/Users/kgilpin/source/appland/appmap-js/node_modules/@langchain/core/dist/utils/tiktoken.cjs:23:59)
at ChatOpenAI.getNumTokens (/Users/kgilpin/source/appland/appmap-js/node_modules/@langchain/core/dist/language_models/base.cjs:182:75)
at /Users/kgilpin/source/appland/appmap-js/node_modules/@langchain/openai/dist/chat_models.cjs:623:42
at async Promise.all (index 1)
at async ChatOpenAI.getNumTokensFromMessages (/Users/kgilpin/source/appland/appmap-js/node_modules/@langchain/openai/dist/chat_models.cjs:621:33)
Project info obtained
Tokens (prompt/compl/total): 24622/35/24657, cost: $0.12
@dividedmind I'm seeing errors like this in the log:
Failed to calculate number of tokens, falling back to approximate count Error: Unknown model at getEncodingNameForModel (/Users/kgilpin/source/appland/appmap-js/node_modules/js-tiktoken/dist/lite.cjs:223:13) at encodingForModel (/Users/kgilpin/source/appland/appmap-js/node_modules/@langchain/core/dist/utils/tiktoken.cjs:23:59) at ChatOpenAI.getNumTokens (/Users/kgilpin/source/appland/appmap-js/node_modules/@langchain/core/dist/language_models/base.cjs:182:75) at /Users/kgilpin/source/appland/appmap-js/node_modules/@langchain/openai/dist/chat_models.cjs:623:42 at async Promise.all (index 1) at async ChatOpenAI.getNumTokensFromMessages (/Users/kgilpin/source/appland/appmap-js/node_modules/@langchain/openai/dist/chat_models.cjs:621:33) Project info obtained Tokens (prompt/compl/total): 24622/35/24657, cost: $0.12
Is that with the default model? Did you run yarn
to update js-tiktoken
?
:tada: This PR is included in version @appland/navie-v1.14.0 :tada:
The release is available on:
@appland/navie-v1.14.0
@appland/navie-v1.14.0
Your semantic-release bot :package::rocket:
:tada: This PR is included in version @appland/appmap-v3.148.0 :tada:
The release is available on:
@appland/appmap-v3.148.0
@appland/appmap-v3.148.0
Your semantic-release bot :package::rocket:
No effort is currently done to summarize it; it's just output in the logs: