You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This gives me the following error indicating that the endpoint_name must be set in the config
File~/****/.venv/lib/python3.11/site-packages/pydantic/main.py:214, inBaseModel.__init__(self, **data)
212# `__tracebackhide__` tells pytest and some other tools to omit this function from tracebacks213__tracebackhide__=True-->214validated_self=self.__pydantic_validator__.validate_python(data, self_instance=self)
215ifselfisnotvalidated_self:
216warnings.warn(
217'A custom validator is returning a value other than `self`.\n'218"Returning anything other than `self` from a top level model validator isn't supported when validating via `__init__`.\n"219'See the `model_validator` docs (https://docs.pydantic.dev/latest/concepts/validators/#model-validators) for more details.',
220stacklevel=2,
221 )
ValidationError: 1validationerrorforDatabricksValueerror, Neitherendpoint_namenorcluster_idwasset. Andthecluster_idcannotbeautomaticallydetermined. Receivederror: Cannotaccessdbruntime, notrunninginsideaDatabricksnotebook. [type=value_error, input_value={'model': 'databricks-meta-llama-3-70b-instruct'}, input_type=dict]
Forfurtherinformationvisithttps://errors.pydantic.dev/2.10/v/value_error
Modifying the config to include an endpoint name then raises a different validation error because lanchain_community.llm.databricks.Databricks does not accept a name argument
This API has been deprecated in favour of langchain_databricks.ChatDatabricks, so is there a recommended way to interface with LLMs using spacy_llm and the Databricks platform?
It is not possible to configure
spacy_llm
to instantiate an LLM agent usinglangchain.Databricks
.For example, here is my initial config
This gives me the following error indicating that the
endpoint_name
must be set in the configModifying the config to include an endpoint name then raises a different validation error because
lanchain_community.llm.databricks.Databricks
does not accept aname
argumentraises
This API has been deprecated in favour of
langchain_databricks.ChatDatabricks
, so is there a recommended way to interface with LLMs usingspacy_llm
and the Databricks platform?For reference, these are the packages I am using:
The text was updated successfully, but these errors were encountered: