Skip to content

Commit

Permalink
feat!: make API camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
McPatate committed Nov 9, 2023
1 parent f58085b commit d8e313d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/llm-ls/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ enum TokenizerConfig {
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
struct RequestParams {
max_new_tokens: u32,
temperature: f32,
Expand Down Expand Up @@ -208,19 +209,22 @@ where
}

#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
struct AcceptedCompletion {
request_id: Uuid,
accepted_completion: u32,
shown_completions: Vec<u32>,
}

#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
struct RejectedCompletion {
request_id: Uuid,
shown_completions: Vec<u32>,
}

#[derive(Debug, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
struct CompletionParams {
#[serde(flatten)]
text_document_position: TextDocumentPositionParams,
Expand Down

0 comments on commit d8e313d

Please sign in to comment.