Merge branch 'docs/llm-model-registry-refactor' of github.com:rmitsch/spaCy into docs/llm-model-registry-refactor

This commit is contained in:
Raphael Mitsch 2024-01-30 11:38:12 +01:00
commit c9b4dd2672

View File

@ -1382,7 +1382,7 @@ provider's API.
| Argument | Description | | Argument | Description |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `name` | Any supporte model name for this particular model provider. ~~str~~ | | `name` | Any supported model name for this particular model provider. ~~str~~ |
| `config` | Further configuration passed on to the model. Default depends on the specific model (cf. below). ~~Dict[Any, Any]~~ | | `config` | Further configuration passed on to the model. Default depends on the specific model (cf. below). ~~Dict[Any, Any]~~ |
| `strict` | If `True`, raises an error if the LLM API returns a malformed response. Otherwise, return the error responses as is. Defaults to `True`. ~~bool~~ | | `strict` | If `True`, raises an error if the LLM API returns a malformed response. Otherwise, return the error responses as is. Defaults to `True`. ~~bool~~ |
| `max_tries` | Max. number of tries for API request. Defaults to `5`. ~~int~~ | | `max_tries` | Max. number of tries for API request. Defaults to `5`. ~~int~~ |
@ -1400,7 +1400,7 @@ provider's API.
> ``` > ```
Currently, these model providers are supported as part of the core library (more Currently, these model providers are supported as part of the core library (more
can be used by leverage the LangChain integration): can be used by leveraging the LangChain integration):
| Model | Provider | Information on available models | Default config | | Model | Provider | Information on available models | Default config |
| -------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------- | | -------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------- |