-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see whatβs changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: langchain-ai/langchainjs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.0.185
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: langchain-ai/langchainjs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.0.186
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 11 commits
- 29 files changed
- 3 contributors
Commits on Nov 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 038f817 - Browse repository at this point
Copy the full SHA 038f817View commit details -
Configuration menu - View commit details
-
Copy full SHA for 042e887 - Browse repository at this point
Copy the full SHA 042e887View commit details -
Configuration menu - View commit details
-
Copy full SHA for af44c3c - Browse repository at this point
Copy the full SHA af44c3cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 808b496 - Browse repository at this point
Copy the full SHA 808b496View commit details -
Configuration menu - View commit details
-
Copy full SHA for ccb6a44 - Browse repository at this point
Copy the full SHA ccb6a44View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9822e3 - Browse repository at this point
Copy the full SHA c9822e3View commit details
Commits on Nov 11, 2023
-
Fix chat prompt serialization (#3230)
* Update cookbook * Fix chat prompt output serialization
Configuration menu - View commit details
-
Copy full SHA for 92ead3a - Browse repository at this point
Copy the full SHA 92ead3aView commit details -
Adds JSON mode to Ollama and ChatOllama (#3229)
* Update cookbook * Adds format option to Ollama * Fix type * Format * Factor out utility type * Update docs
Configuration menu - View commit details
-
Copy full SHA for cf84bf2 - Browse repository at this point
Copy the full SHA cf84bf2View commit details -
Fix delta role error when using custom LLM (#3223)
* Fix delta role error when using custom LLM This addresses a delta chunk issue that happens when you use a custom baseURL on the openai chat model. Some models like llama 2 on openrouter may have a empty delta and result in a undefined error. Example error: ``` Cannot read properties of undefined (reading 'role')", "error.stack": "TypeError: Cannot read properties of undefined (reading 'role')\n at _convertDeltaToMessageChunk (/home/ubuntu/node_modules/langchain/dist/chat_models/openai.cjs:72:24)\n at ChatOpenAI._streamResponseChunks (/home/ubuntu/node_modules/langchain/dist/chat_models/openai.cjs:409:27)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async ChatOpenAI._streamIterator (/home/ubuntu/node_modules/langchain/dist/chat_models/base.cjs:77:34)\n at async RunnableSequence._streamIterator (/home/ubuntu/node_modules/langchain/dist/schema/runnable/base.cjs:780:30)\n at async Object.pull (/home/ubuntu/node_modules/langchain/dist/util/stream.cjs:73:41) ``` on _convertDeltaToMessageChunk, openai works fine but when you start using models from openrouter or other baseURL llms, it doesnt take in account for empty deltas and assumes theres always a value. I was able to test with a custom baseURL and normal openai that this works with no errors on streaming after this tweak. * add default role * add ? on chunk text for streaming delta * Simpler fix * Revert --------- Co-authored-by: jacoblee93 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 719a131 - Browse repository at this point
Copy the full SHA 719a131View commit details -
* Runnable support for LLMChains * fix typing * nit * nit * fix build & typing * chore: lint files * cr * cr * cr * no instance of * Adds type guard * fix signal bug * cr * cr --------- Co-authored-by: jacoblee93 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0cb640f - Browse repository at this point
Copy the full SHA 0cb640fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3289345 - Browse repository at this point
Copy the full SHA 3289345View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we canβt render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.0.185...0.0.186