diff options
| author | sigoden <sigoden@gmail.com> | 2024-05-23 19:28:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-23 19:28:56 +0800 |
| commit | 5458150ed3203cf13b0371efa2c791ac696cee93 (patch) | |
| tree | 702d17039d9677246a3b91deb8243e09cd768402 /src/client/vertexai.rs | |
| parent | 2ccbb0f06a4558e15642feb53ba7b2bd72804820 (diff) | |
| download | aichat-5458150ed3203cf13b0371efa2c791ac696cee93.tar.gz | |
fix: json stream parser and refine client modules (#538)
Diffstat (limited to 'src/client/vertexai.rs')
| -rw-r--r-- | src/client/vertexai.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/vertexai.rs b/src/client/vertexai.rs index 67a4b21..1abbffc 100644 --- a/src/client/vertexai.rs +++ b/src/client/vertexai.rs @@ -177,10 +177,7 @@ fn gemini_extract_completion_text(data: &Value) -> Result<CompletionOutput> { Ok(output) } -pub(crate) fn gemini_build_body( - data: SendData, - model: &Model, -) -> Result<Value> { +pub(crate) fn gemini_build_body(data: SendData, model: &Model) -> Result<Value> { let SendData { mut messages, temperature, |
