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

Add service configuration page #17

Merged
merged 4 commits into from
Nov 19, 2024
Merged

Add service configuration page #17

merged 4 commits into from
Nov 19, 2024

Conversation

Regaddi
Copy link
Contributor

@Regaddi Regaddi commented Nov 19, 2024

Short summary of changes (please include issue #)

This adds a service configuration page and removes the API Keys section from the workspace configuration form.
With this services can be added, edited and removed.

I also added missing LLM models and voice options.

The current validation rules in the API only allow a provider to be added once per user, but I think it should be once per user + service_type + workspace_id. Currently it's not possible to add OpenAI as an LLM provider and as a TTS provider. I updated the constraints, but I think it needs a migration, too.

Screenshots

CleanShot 2024-11-19 at 14 23 13@2x

CleanShot 2024-11-19 at 14 24 28@2x

CleanShot 2024-11-19 at 14 24 36@2x

CleanShot 2024-11-19 at 14 24 45@2x

CleanShot 2024-11-19 at 14 25 36@2x

@Regaddi Regaddi self-assigned this Nov 19, 2024
Copy link

vercel bot commented Nov 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
open-sesame ✅ Ready (Inspect) Visit Preview Nov 19, 2024 1:20pm

@@ -128,7 +128,7 @@ async def update_service(
result = await db.execute(select(Service).where(Service.service_id == service_id))
service = result.scalar_one_or_none()

return ServiceModel.model_validate(service)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was constantly throwing an error after successfully updating a service.

@jptaylor jptaylor merged commit c1d3e8e into main Nov 19, 2024
1 of 4 checks passed
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