Skip to content

Commit 8c52aa0

Browse files
committed
Fix dead code warnings
Signed-off-by: itowlson <[email protected]>
1 parent 22322aa commit 8c52aa0

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

crates/llm-remote-http/src/open_ai/schemas.rs

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -165,56 +165,6 @@ impl TryFrom<&str> for EncodingFormat {
165165
}
166166
}
167167

168-
#[derive(Serialize, Debug)]
169-
enum ReasoningEffort {
170-
#[serde(rename = "minimal")]
171-
Minimal,
172-
#[serde(rename = "low")]
173-
Low,
174-
#[serde(rename = "medium")]
175-
Medium,
176-
#[serde(rename = "high")]
177-
High,
178-
}
179-
180-
impl TryFrom<&str> for ReasoningEffort {
181-
type Error = wasi_llm::Error;
182-
183-
fn try_from(value: &str) -> Result<Self, Self::Error> {
184-
match value {
185-
"minimal" => Ok(ReasoningEffort::Minimal),
186-
"low" => Ok(ReasoningEffort::Low),
187-
"medium" => Ok(ReasoningEffort::Medium),
188-
"high" => Ok(ReasoningEffort::High),
189-
_ => Err(wasi_llm::Error::InvalidInput(format!(
190-
"{value} not a recognized reasoning effort",
191-
))),
192-
}
193-
}
194-
}
195-
196-
#[derive(Serialize, Debug)]
197-
enum Verbosity {
198-
Low,
199-
Medium,
200-
High,
201-
}
202-
203-
impl TryFrom<&str> for Verbosity {
204-
type Error = wasi_llm::Error;
205-
206-
fn try_from(value: &str) -> Result<Self, Self::Error> {
207-
match value {
208-
"low" => Ok(Verbosity::Low),
209-
"medium" => Ok(Verbosity::Medium),
210-
"high" => Ok(Verbosity::High),
211-
_ => Err(wasi_llm::Error::InvalidInput(format!(
212-
"{value} not a recognized verbosity",
213-
))),
214-
}
215-
}
216-
}
217-
218168
#[derive(Deserialize)]
219169
struct ChatCompletionChoice {
220170
message: ChatCompletionResponseMessage,

0 commit comments

Comments
 (0)