mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
update rust side to handle default targets
This commit is contained in:
parent
6be6cc6346
commit
866494da27
5 changed files with 113 additions and 76 deletions
|
|
@ -138,7 +138,7 @@ impl From<String> for ParameterType {
|
|||
_ => {
|
||||
log::warn!("Unknown parameter type: {}, assuming type str", s);
|
||||
ParameterType::String
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -205,13 +205,6 @@ pub struct ToolCallState {
|
|||
pub enum ArchState {
|
||||
ToolCall(Vec<ToolCallState>),
|
||||
}
|
||||
#[derive(Deserialize, Serialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum ModelServerResponse {
|
||||
ChatCompletionsResponse(ChatCompletionsResponse),
|
||||
ModelServerErrorResponse(ModelServerErrorResponse),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct ModelServerErrorResponse {
|
||||
pub result: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue