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
Using the problematic key from #690, the code therein returns not_found_error if the model is invalid-model. But if the invalid model name contains a space, the code returns error: { type: 'api_error', message: 'Internal server error' }:
constresponse=awaitfetch('https://api.anthropic.com/v1/messages',{method: 'POST',headers: {'x-api-key': 'sk-ant-api03-1WH_3...-ONyGHQAA','anthropic-version': '2023-06-01',// required by the Messages API},body: JSON.stringify({messages: [{role: 'user',content: 'Hello'}],max_tokens: 4096,// required, maximummodel: 'invalid model',// instead of `invalid-model`}),});console.log(awaitresponse.json());
The text was updated successfully, but these errors were encountered:
Using the problematic key from #690, the code therein returns
not_found_error
if the model isinvalid-model
. But if the invalid model name contains a space, the code returnserror: { type: 'api_error', message: 'Internal server error' }
:The text was updated successfully, but these errors were encountered: