langchain/langchain/embeddings
Nguyen Trung Duc (john) 49e4aaf673
Fix subclassing OpenAIEmbeddings (#4500)
# Fix subclassing OpenAIEmbeddings

Fixes #4498 

## Before submitting

- Problem: Due to annotated type `Tuple[()]`.
- Fix: Change the annotated type to "Iterable[str]". Even though
tiktoken use
[Collection[str]](095924e02c/tiktoken/core.py (L80))
type annotation, but pydantic doesn't support Collection type, and
[Iterable](https://docs.pydantic.dev/latest/usage/types/#typing-iterables)
is the closest to Collection.
2023-05-16 18:35:19 -07:00
..
__init__.py Add ChatModel, LLM, and Embeddings for Google's PaLM APIs (#3575) 2023-05-01 15:23:16 -07:00
aleph_alpha.py Add aleph alpha api key attribute (#4489) 2023-05-10 17:29:57 -07:00
base.py
cohere.py changed cohere.py to update the default model of embedding (#4709) 2023-05-16 16:27:23 -07:00
fake.py add fake embeddings class (#1503) 2023-03-07 15:23:46 -08:00
google_palm.py Exponential back-off support for Google PaLM api (#4001) 2023-05-15 17:21:11 -07:00
huggingface_hub.py Minor: Remove duplicated word in error message (#2706) 2023-04-11 13:10:33 -07:00
huggingface.py Fix typo in huggingface.py (#4277) 2023-05-07 11:37:06 -04:00
jina.py Minor: Remove duplicated word in error message (#2706) 2023-04-11 13:10:33 -07:00
llamacpp.py llama-cpp: add gpu layers parameter (#4739) 2023-05-15 16:01:48 -07:00
openai.py Fix subclassing OpenAIEmbeddings (#4500) 2023-05-16 18:35:19 -07:00
sagemaker_endpoint.py Fix Sagemaker Batch Endpoints (#3249) 2023-04-22 08:49:51 -07:00
self_hosted_hugging_face.py Removed duplicate BaseModel dependencies (#2471) 2023-04-06 12:45:16 -07:00
self_hosted.py Removed duplicate BaseModel dependencies (#2471) 2023-04-06 12:45:16 -07:00
sentence_transformer.py Sentence Transformers Aliasing (#3541) 2023-04-25 23:29:20 -07:00
tensorflow_hub.py pass list of strings to embed method in tf_hub (#3284) 2023-04-24 19:51:53 -07:00