Description
The docs provide the following example
import { anthropic } from '@ai-sdk/anthropic';
import { openai } from '@ai-sdk/openai';
export const customSeparatorRegistry = createProviderRegistry(
{
anthropic,
openai,
},
{ separator: ' > ' },
);
When I try to use it
await generateText({
model: customSeparatorRegistry.languageModel('openai > gpt-4o'),
prompt: 'How many letters are in the word "hello"?',
})
I get NoSuchModelError [AI_NoSuchModelError]: No such languageModel: > gpt-4o
Description
The docs provide the following example
When I try to use it
I get
NoSuchModelError [AI_NoSuchModelError]: No such languageModel: > gpt-4o