Skip to content

Commit

Permalink
Update MosaicML Embedding Input Key (#12657)
Browse files Browse the repository at this point in the history
This input key was missed in the last update PR:
#7391

The input/output formats are intended to be like this:

```
{"inputs": [<prompt>]} 

{"outputs": [<output_text>]}
```
  • Loading branch information
margaretqian authored Oct 31, 2023
1 parent d26ac5f commit acfc485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langchain/langchain/embeddings/mosaicml.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _identifying_params(self) -> Mapping[str, Any]:
def _embed(
self, input: List[Tuple[str, str]], is_retry: bool = False
) -> List[List[float]]:
payload = {"input_strings": input}
payload = {"inputs": input}

# HTTP headers for authorization
headers = {
Expand Down

0 comments on commit acfc485

Please sign in to comment.