Problem/Motivation
$client->models() in LiteLlmAiConfigForm::validateForm will throw exception if hostname has trailing slash in it.
Steps to reproduce
Add trailing slash to working host name and it will show error message 'The API Key is invalid.'
Proposed resolution
Either update description something like 'The base URL that API requests should be made against without trailing slash.' or add validation.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | issue3532838.jpg | 53.77 KB | matthews |
Issue fork ai_provider_litellm-3532838
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
dan2k3k4 commentedCreated a Merge Request:
https://git.drupalcode.org/project/ai_provider_litellm/-/merge_requests/9
Comment #5
matthews commentedI tested this locally and the fix appears to work. I now get an error message indicating I should not have a trailing slash. Setting to RTBC.
Comment #7
dan2k3k4 commentedThanks, merged MR and credited everyone using the new Contribution Record system
https://new.drupal.org/contribution-record/11415156
Comment #9
dan2k3k4 commented