mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-05 03:02:35 +00:00
docs: update multimodal PDF and image usage for gpt-4.1 **Description:** This update revises the LangChain documentation to support the new GPT-4.1 multimodal API format. It fixes the previous broken example for PDF uploads (which returned a 400 error: "Missing required parameter: 'messages[0].content[1].file'") and adds clear instructions on how to include base64-encoded images for OpenAI models. **Issue:** error appointed in foruns for pdf load into api -> ''' @[Albaeld](https://github.com/Albaeld) Albaeld [8 days ago](https://github.com/langchain-ai/langchain/discussions/27702#discussioncomment-13369460) This simply does not work with openai:gpt-4.1. I get: Error code: 400 - {'error': {'message': "Missing required parameter: 'messages[0].content[1].file'.", 'type': 'invalid_request_error', 'param': 'messages[0].content[1].file', 'code': 'missing_required_parameter'}} ''' **Dependencies:** None **Twitter handle:** N/A --------- Co-authored-by: Chester Curme <chester.curme@gmail.com> |
||
---|---|---|
.. | ||
api_reference | ||
cassettes | ||
data | ||
docs | ||
scripts | ||
src | ||
static | ||
.gitignore | ||
.yarnrc.yml | ||
babel.config.js | ||
docusaurus.config.js | ||
ignore-step.sh | ||
Makefile | ||
package.json | ||
README.md | ||
sidebars.js | ||
vercel_overrides.txt | ||
vercel_requirements.txt | ||
vercel.json | ||
yarn.lock |
LangChain Documentation
For more information on contributing to our documentation, see the Documentation Contributing Guide