Persist provider name and model config in the session (#5419)

This commit is contained in:
Will Pfleger
2025-11-20 15:55:32 -05:00
committed by GitHub
parent f4724cbf23
commit 682e315be8
18 changed files with 311 additions and 106 deletions
+12
View File
@@ -412,6 +412,16 @@ export type MessageMetadata = {
userVisible: boolean;
};
export type ModelConfig = {
context_limit?: number | null;
fast_model?: string | null;
max_tokens?: number | null;
model_name: string;
temperature?: number | null;
toolshim: boolean;
toolshim_model?: string | null;
};
/**
* Information about a model's capabilities
*/
@@ -697,8 +707,10 @@ export type Session = {
id: string;
input_tokens?: number | null;
message_count: number;
model_config?: ModelConfig | null;
name: string;
output_tokens?: number | null;
provider_name?: string | null;
recipe?: Recipe | null;
schedule_id?: string | null;
session_type?: SessionType;