Skip to content
Snippets Groups Projects
Commit 109fae92 authored by Marcus Johansson's avatar Marcus Johansson
Browse files

Issue #3488511: Requests to HuggingFace broken (in API Explorer)

parent 8443b52a
Branches 1.0.x
No related merge requests found
Pipeline #406488 passed
......@@ -283,7 +283,9 @@ class HuggingfaceProvider extends AiProviderClientBase implements
$form['model_data']['huggingface_endpoint'] = [
'#type' => 'textfield',
'#title' => $this->t('Endpoint'),
'#description' => $this->t('The endpoint needed to access the dedicated Huggingface API or the model name for shared inference. Model names autocompletes.'),
'#description' => $this->t('The endpoint needed to access the dedicated Huggingface API or the model name for shared inference. You can find possible models <a href=":link" target="_blank">here</a>. Model names autocompletes.', [
':link' => 'https://huggingface.co/models?pipeline_tag=' . $this->supportedTypes[$operation_type]['filter'],
]),
'#default_value' => $config['huggingface_endpoint'] ?? '',
'#required' => TRUE,
'#weight' => -10,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment