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:
committed by
Caren Thomas
parent
128afeb587
commit
5af0c1535f
@@ -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": [
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user