langchain/libs/partners/nvidia-ai-endpoints/langchain_nvidia_ai_endpoints
Vadim Kudlay 75b6fa1134
nvidia-ai-endpoints[patch]: Support User-Agent metadata and minor fixes. (#16942)
- **Description:** Several meta/usability updates, including User-Agent.
  - **Issue:** 
- User-Agent metadata for tracking connector engagement. @milesial
please check and advise.
- Better error messages. Tries harder to find a request ID. @milesial
requested.
- Client-side image resizing for multimodal models. Hope to upgrade to
Assets API solution in around a month.
- `client.payload_fn` allows you to modify payload before network
request. Use-case shown in doc notebook for kosmos_2.
- `client.last_inputs` put back in to allow for advanced
support/debugging.
  - **Dependencies:** 
- Attempts to pull in PIL for image resizing. If not installed, prints
out "please install" message, warns it might fail, and then tries
without resizing. We are waiting on a more permanent solution.

For LC viz: @hinthornw 
For NV viz: @fciannella @milesial @vinaybagade

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2024-02-05 12:24:53 -08:00
..
__init__.py
_common.py nvidia-ai-endpoints[patch]: Support User-Agent metadata and minor fixes. (#16942) 2024-02-05 12:24:53 -08:00
chat_models.py nvidia-ai-endpoints[patch]: Support User-Agent metadata and minor fixes. (#16942) 2024-02-05 12:24:53 -08:00
embeddings.py nvidia-ai-endpoints[patch]: Support User-Agent metadata and minor fixes. (#16942) 2024-02-05 12:24:53 -08:00
py.typed