feat: fix display name stuff (#5329)

* feat: fix display name stuff

* chore: fix types

---------

Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
Shubham Naik
2025-10-10 17:40:53 -07:00
committed by Caren Thomas
parent 128afeb587
commit 5af0c1535f
2 changed files with 44 additions and 0 deletions

View File

@@ -14207,6 +14207,36 @@
"model": {
"type": "string"
},
"display_name": {
"oneOf": [
{
"type": "string"
},
{
"type": "string",
"format": "null",
"nullable": true
},
{
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "string",
"format": "null",
"nullable": true
}
],
"nullable": true
}
},
{}
],
"nullable": true
},
"model_endpoint_type": {
"type": "string",
"enum": [
@@ -28694,6 +28724,18 @@
"title": "Model",
"description": "LLM model name. "
},
"display_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Display Name",
"description": "A human-friendly display name for the model."
},
"model_endpoint_type": {
"type": "string",
"enum": [

View File

@@ -13,6 +13,8 @@ class LLMConfig(BaseModel):
"""Configuration for Language Model (LLM) connection and generation parameters."""
model: str = Field(..., description="LLM model name. ")
display_name: Optional[str] = Field(None, description="A human-friendly display name for the model.")
model_endpoint_type: Literal[
"openai",
"anthropic",