add more changes

This commit is contained in:
Adil Hafeez 2025-06-24 23:57:28 -07:00
parent 80998d446d
commit 4373aeb00b
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
9 changed files with 78 additions and 41 deletions

View file

@ -2,6 +2,7 @@ use hermesllm::providers::openai::types::{ModelDetail, ModelObject, Models};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::fmt::Display;
use serde_with::skip_serializing_none;
use crate::api::open_ai::{
ChatCompletionTool, FunctionDefinition, FunctionParameter, FunctionParameters, ParameterType,
@ -176,6 +177,13 @@ impl Display for LlmProviderType {
}
}
#[skip_serializing_none]
#[derive(Serialize, Deserialize, Debug)]
pub struct ModelUsagePreference {
pub model: String,
pub usage: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct LlmRoute {
pub name: String,