Skip to content

Anthropic LLM provider fails to list models: "Cannot destructure property 'baseUrl' of 'e.body' as it is undefined" #8636

@s31teg

Description

@s31teg

Description

Description
When selecting Anthropic as the AI provider in AI/LLM settings and clicking "Refresh Models", the request fails with a 500 error. The Model dropdown remains empty and no Anthropic models can be selected.
This occurs even with:

Steps to Reproduce:
Go to AI/LLM settings
Enable AI/LLM features
Select "Anthropic" as the provider
Enter a valid Anthropic API key
Set Base URL to https://api.anthropic.com (or leave as default)
Click "Refresh Models"
Error appears; Model dropdown remains empty

Image

TriliumNext Version

0.101.3

What operating system are you using?

macOS

What is your setup?

Server access only

Operating System Version

Mac

Error logs

notes.ne16.xyz-1770369376050.log

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions