Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit transcripts assistant picker to custom assistants only #5217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

albandum
Copy link
Contributor

Description

For now people could add @gpt4 and all default assistants as transcripts processors, which makes no sense.
Removing the possibility to use a default assistant in Transcripts

Risk

Deploy Plan

@albandum albandum requested a review from spolu May 22, 2024 13:45
@albandum albandum changed the title Limit transcripts assistant picket to custom assistants only Limit transcripts assistant picker to custom assistants only May 22, 2024
const agents = agentConfigurations.filter((a) => a.status === "active");
// Only custom assistants - there's no point in passing a transcript to a default assistant without instructions.
const agents = agentConfigurations.filter(
(a) => a.status === "active" && a.id != -1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we have a function to filter them out?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You likely can tweak that instead: agentsGetView: "list",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we actually using agentsGetView?

From the SWR useAgentConfigurations it looks like it, but looking at front/pages/api/v1/w/[wId]/assistant/agent_configurations.ts the GET request does not take into account any query param :/

const agentConfigurations = await getAgentConfigurations({
        auth,
        agentsGetView: "all",
        variant: "light",
      });

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh it should cc @philipperolet who introduced it I believe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants