Playground stuck on white screen

No description
11 Replies
Asaf from Sequence
Asaf from SequenceOPโ€ข2w ago
I don't know which details to add to help you guys resolve this but please LMK I believe I found the issue: The following agent config works:
export const classifierAgent = new Agent({
name: 'Classifier Agent',
instructions: classifierAgentPrompt,
model: () => {
const apiKey = EnvironmentConfig.ai.openaiApiKey;

if (!apiKey) {
throw new Error('OpenAI API key not found');
}

const openai = createOpenAI({ apiKey });
return openai('gpt-4o-mini');
}
});
export const classifierAgent = new Agent({
name: 'Classifier Agent',
instructions: classifierAgentPrompt,
model: () => {
const apiKey = EnvironmentConfig.ai.openaiApiKey;

if (!apiKey) {
throw new Error('OpenAI API key not found');
}

const openai = createOpenAI({ apiKey });
return openai('gpt-4o-mini');
}
});
The following is broken:
export const classifierAgent = new Agent({
name: 'Classifier Agent',
instructions: [
{
role: 'system',
content: classifierAgentPrompt,
providerOptions: {
openai: {
structuredOutputs: {
schema: z.object({
queryCategory: classificationSchema
})
}
}
}
}
],
model: () => {
const apiKey = EnvironmentConfig.ai.openaiApiKey;

if (!apiKey) {
throw new Error('OpenAI API key not found');
}

const openai = createOpenAI({ apiKey });
return openai('gpt-4o-mini');
}
});
export const classifierAgent = new Agent({
name: 'Classifier Agent',
instructions: [
{
role: 'system',
content: classifierAgentPrompt,
providerOptions: {
openai: {
structuredOutputs: {
schema: z.object({
queryCategory: classificationSchema
})
}
}
}
}
],
model: () => {
const apiKey = EnvironmentConfig.ai.openaiApiKey;

if (!apiKey) {
throw new Error('OpenAI API key not found');
}

const openai = createOpenAI({ apiKey });
return openai('gpt-4o-mini');
}
});
Guria
Guriaโ€ข2w ago
This was already reported
ziksa13
ziksa13โ€ข2w ago
+1 on the issue, does not work locally or on cloud
fracheton
frachetonโ€ข2w ago
It will be fixed in the next release, sorry for that
Guria
Guriaโ€ข2w ago
@fracheton do you have a schedule for releases? when to wait next one?
Unknown User
Unknown Userโ€ข2w ago
Message Not Public
Sign In & Join Server To View
fracheton
frachetonโ€ข7d ago
Today ๐Ÿ™‚ . It should be fix on latest versions
Guria
Guriaโ€ข6d ago
Can confirm this was fixed
ziksa13
ziksa13โ€ข6d ago
+1 upgraded to latest and this works now! thank you team!!
fracheton
frachetonโ€ข2d ago
Thank you folks for helping identifying pain points and helping us improve ๐Ÿ™

Did you find this page helpful?