langchain/libs/community/langchain_community
maang-h 13140dc4ff
community[patch]: Update the default api_url and reqeust_body of sparkllm embedding (#22136)
- **Description:** When I was running the SparkLLMTextEmbeddings,
app_id, api_key and api_secret are all correct, but it cannot run
normally using the current URL.

    ```python
    # example
    from langchain_community.embeddings import SparkLLMTextEmbeddings

    embedding= SparkLLMTextEmbeddings(
        spark_app_id="my-app-id",
        spark_api_key="my-api-key",
        spark_api_secret="my-api-secret"
    )
    embedding= "hello"
    print(spark.embed_query(text1))
    ```

![sparkembedding](https://github.com/langchain-ai/langchain/assets/55082429/11daa853-4f67-45b2-aae2-c95caa14e38c)
   
So I updated the url and request body parameters according to
[Embedding_api](https://www.xfyun.cn/doc/spark/Embedding_api.html), now
it is runnable.
2024-06-03 12:38:11 -07:00
..
adapters
agent_toolkits community[patch]: Fix remaining __inits__ in community (#22037) 2024-05-22 17:42:17 +00:00
agents langchain, community: move OpenAIAssistantV2Runnable to community (#22044) 2024-05-22 21:22:50 +00:00
callbacks community, docs: update token usage tracking callback + how-to guides (#22145) 2024-05-29 17:00:47 -04:00
chains
chat_loaders infra: rm unused # noqa violations (#22049) 2024-05-22 15:21:08 -07:00
chat_message_histories community[minor]: Add Zep Cloud components + docs + examples (#21671) 2024-05-27 12:50:13 -07:00
chat_models community[patch]: Standardize qianfan model init args name (#22322) 2024-05-30 11:08:32 -04:00
cross_encoders
docstore community[patch]: Fix remaining __inits__ in community (#22037) 2024-05-22 17:42:17 +00:00
document_compressors langchain: add RankLLM Reranker (#21171) 2024-05-22 20:12:55 +00:00
document_loaders community[patch]: Update firecrawl api key name (#22183) 2024-05-27 21:39:29 +00:00
document_transformers infra: rm unused # noqa violations (#22049) 2024-05-22 15:21:08 -07:00
embeddings community[patch]: Update the default api_url and reqeust_body of sparkllm embedding (#22136) 2024-06-03 12:38:11 -07:00
example_selectors
graphs infra: rm unused # noqa violations (#22049) 2024-05-22 15:21:08 -07:00
indexes
llms infra: rm unused # noqa violations (#22049) 2024-05-22 15:21:08 -07:00
memory community[minor]: Add Zep Cloud components + docs + examples (#21671) 2024-05-27 12:50:13 -07:00
output_parsers infra: rm unused # noqa violations (#22049) 2024-05-22 15:21:08 -07:00
query_constructors
retrievers community[minor]: Add Zep Cloud components + docs + examples (#21671) 2024-05-27 12:50:13 -07:00
storage doc: Add doc for CassandraByteStore (#22126) 2024-05-24 10:57:55 -04:00
tools community[patch]: Adding HEADER to the list of supported locations (#21946) 2024-05-22 22:47:56 +00:00
utilities community: fix missing apify_api_token field in ApifyWrapper (#22421) 2024-06-03 14:32:57 +00:00
utils
vectorstores community: fix AzureSearch delete documents (#22315) 2024-06-03 15:55:06 +00:00
__init__.py
cache.py
py.typed