You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs
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.
4 months ago
..
cli docs, cli[patch]: chat model template nit (#22294) 4 months ago
community community[patch]: Update the default api_url and reqeust_body of sparkllm embedding (#22136) 4 months ago
core core[patch]: RFC: Allow concatenation of messages with multi part content (#22002) 4 months ago
experimental [experimental][llms][ollama_functions] Update OllamaFunctions to send `tool_calls` attribute (#21625) 4 months ago
langchain Update parent_document_retriever.py about **kwargs (#22219) 4 months ago
partners infra: bump anthropic mypy 1 (#22373) 4 months ago
standard-tests core, partners: add token usage attribute to AIMessage (#21944) 4 months ago
text-splitters fix error message (#22437) 4 months ago