Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
3dbc649b
Unverified
Commit
3dbc649b
authored
Nov 20, 2023
by
OlivierDehaene
Committed by
GitHub
Nov 20, 2023
Browse files
fix: do not leak inputs on error (#1228)
Close #1225
parent
8acdc1fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
router/src/infer.rs
router/src/infer.rs
+3
-3
router/src/validation.rs
router/src/validation.rs
+1
-1
No files found.
router/src/infer.rs
View file @
3dbc649b
...
...
@@ -82,7 +82,7 @@ impl Infer {
}
/// Add a new request to the queue and return a stream of InferStreamResponse
#[instrument(skip
(self)
)]
#[instrument(skip
_all
)]
pub
(
crate
)
async
fn
generate_stream
(
&
self
,
request
:
GenerateRequest
,
...
...
@@ -133,7 +133,7 @@ impl Infer {
}
/// Add a new request to the queue and return a InferResponse
#[instrument(skip
(self)
)]
#[instrument(skip
_all
)]
pub
(
crate
)
async
fn
generate
(
&
self
,
request
:
GenerateRequest
,
...
...
@@ -214,7 +214,7 @@ impl Infer {
}
/// Add best_of new requests to the queue and return a InferResponse of the sequence with
/// the highest log probability per token
#[instrument(skip(self))]
#[instrument(skip(self
,
request
))]
pub
(
crate
)
async
fn
generate_best_of
(
&
self
,
request
:
GenerateRequest
,
...
...
router/src/validation.rs
View file @
3dbc649b
...
...
@@ -69,7 +69,7 @@ impl Validation {
}
}
#[instrument(skip
_all
)]
#[instrument(skip
(self,
inputs)
)]
async
fn
validate_input
(
&
self
,
inputs
:
String
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment