Skip to content

Conversation

mludvig
Copy link
Contributor

@mludvig mludvig commented Oct 17, 2025

Before this change some model names were hardcoded in the codebase - claude-v3-haiku for generating the convo titles and claude-v3.7-sonnet as the default for everything else. The problem is that some accounts may not have access to these models and changing them is not trivial for the end users.

This PR adds a new config option defaultModel for setting this default model in cdk.json / parameter.ts so that the default model can be easily updated, perhaps along with globalAvailableModels.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

return []


def get_default_model() -> type_model_name:
Copy link
Contributor

Choose a reason for hiding this comment

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

As you suggested, there are several "default models" on this application:

  • Title generation
  • New chat screen
  • etc

Why don't we have get_default_model which returns BaseSchema? e.g.

class DefaultModelSchema(BaseSchema):
  title_generation_model: type_model_name
  chat_model: type_model_name
  # ...

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