Skip to content

Commit

Permalink
Update API inference documentation (automated)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanouticelina authored and github-actions[bot] committed Nov 25, 2024
1 parent fbd46c4 commit 026c86e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/api-inference/tasks/chat-completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,12 @@ To use the JavaScript client, see `huggingface.js`'s [package reference](https:/
| **        include_usage*** | _boolean_ | If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value. |
| **temperature** | _number_ | What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or `top_p` but not both. |
| **tool_choice** | _unknown_ | One of the following: |
| **         (#1)** | _object_ | |
| **         (#2)** | _string_ | |
| **         (#3)** | _object_ | |
| **         (#1)** | _enum_ | Possible values: auto. |
| **         (#2)** | _enum_ | Possible values: none. |
| **         (#3)** | _enum_ | Possible values: required. |
| **         (#4)** | _object_ | |
| **                function*** | _object_ | |
| **                        name*** | _string_ | |
| **         (#4)** | _object_ | |
| **tool_prompt** | _string_ | A prompt to be appended before the tools |
| **tools** | _object[]_ | A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. |
| **        function*** | _object_ | |
Expand Down
2 changes: 1 addition & 1 deletion docs/api-inference/tasks/feature-extraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ To use the JavaScript client, see `huggingface.js`'s [package reference](https:/
| :--- | :--- | :--- |
| **inputs*** | _string_ | The text to embed. |
| **normalize** | _boolean_ | |
| **prompt_name** | _string_ | The name of the prompt that should be used by for encoding. If not set, no prompt will be applied. Must be a key in the `Sentence Transformers` configuration `prompts` dictionary. For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ", ...}, then the sentence "What is the capital of France?" will be encoded as "query: What is the capital of France?" because the prompt text will be prepended before any text to encode. |
| **prompt_name** | _string_ | The name of the prompt that should be used by for encoding. If not set, no prompt will be applied. Must be a key in the `sentence-transformers` configuration `prompts` dictionary. For example if ``prompt_name`` is "query" and the ``prompts`` is {"query": "query: ", ...}, then the sentence "What is the capital of France?" will be encoded as "query: What is the capital of France?" because the prompt text will be prepended before any text to encode. |
| **truncate** | _boolean_ | |
| **truncation_direction** | _enum_ | Possible values: Left, Right. |

Expand Down
1 change: 0 additions & 1 deletion docs/api-inference/tasks/text-classification.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ For more details about the `text-classification` task, check out its [dedicated
- [ProsusAI/finbert](https://huggingface.co/ProsusAI/finbert): A sentiment analysis model specialized in financial sentiment.
- [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest): A sentiment analysis model specialized in analyzing tweets.
- [papluca/xlm-roberta-base-language-detection](https://huggingface.co/papluca/xlm-roberta-base-language-detection): A model that can classify languages.
- [meta-llama/Prompt-Guard-86M](https://huggingface.co/meta-llama/Prompt-Guard-86M): A model that can classify text generation attacks.

Explore all available models and find the one that suits you best [here](https://huggingface.co/models?inference=warm&pipeline_tag=text-classification&sort=trending).

Expand Down

0 comments on commit 026c86e

Please sign in to comment.