Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
f63e273c
Unverified
Commit
f63e273c
authored
Dec 22, 2025
by
smatta-star
Committed by
GitHub
Dec 22, 2025
Browse files
feat: add auto-generated frontend OpenAPI spec and helper binary (#4802)
Signed-off-by:
Satvik Matta
<
smatta@nvidia.com
>
parent
ac8c9023
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
lib/llm/src/protocols/openai/embeddings/nvext.rs
lib/llm/src/protocols/openai/embeddings/nvext.rs
+2
-1
lib/llm/src/protocols/openai/nvext.rs
lib/llm/src/protocols/openai/nvext.rs
+4
-3
lib/llm/src/protocols/openai/responses.rs
lib/llm/src/protocols/openai/responses.rs
+5
-2
No files found.
lib/llm/src/protocols/openai/embeddings/nvext.rs
View file @
f63e273c
...
...
@@ -3,6 +3,7 @@
use
derive_builder
::
Builder
;
use
serde
::{
Deserialize
,
Serialize
};
use
utoipa
::
ToSchema
;
use
validator
::{
Validate
,
ValidationError
};
pub
trait
NvExtProvider
{
...
...
@@ -10,7 +11,7 @@ pub trait NvExtProvider {
}
/// NVIDIA LLM extensions to the OpenAI API
#[derive(Serialize,
Deserialize,
Builder,
Validate,
Debug,
Clone)]
#[derive(
ToSchema,
Serialize,
Deserialize,
Builder,
Validate,
Debug,
Clone)]
#[validate(schema(function
=
"validate_nv_ext"
))]
pub
struct
NvExt
{
/// Annotations
...
...
lib/llm/src/protocols/openai/nvext.rs
View file @
f63e273c
...
...
@@ -3,6 +3,7 @@
use
derive_builder
::
Builder
;
use
serde
::{
Deserialize
,
Serialize
};
use
utoipa
::
ToSchema
;
use
validator
::{
Validate
,
ValidationError
};
pub
use
crate
::
protocols
::
common
::
timing
::
TimingInfo
;
...
...
@@ -13,7 +14,7 @@ pub trait NvExtProvider {
}
/// Worker ID information for disaggregated serving
#[derive(Serialize,
Deserialize,
Debug,
Clone,
PartialEq)]
#[derive(
ToSchema,
Serialize,
Deserialize,
Debug,
Clone,
PartialEq)]
pub
struct
WorkerIdInfo
{
/// The prefill worker ID that processed this request
#[serde(skip_serializing_if
=
"Option::is_none"
)]
...
...
@@ -25,7 +26,7 @@ pub struct WorkerIdInfo {
}
/// NVIDIA LLM response extensions
#[derive(Serialize,
Deserialize,
Debug,
Clone)]
#[derive(
ToSchema,
Serialize,
Deserialize,
Debug,
Clone)]
pub
struct
NvExtResponse
{
/// Worker ID information (prefill and decode worker IDs)
#[serde(skip_serializing_if
=
"Option::is_none"
)]
...
...
@@ -43,7 +44,7 @@ pub struct NvExtResponse {
}
/// NVIDIA LLM extensions to the OpenAI API
#[derive(Serialize,
Deserialize,
Builder,
Validate,
Debug,
Clone)]
#[derive(
ToSchema,
Serialize,
Deserialize,
Builder,
Validate,
Debug,
Clone)]
#[validate(schema(function
=
"validate_nv_ext"
))]
pub
struct
NvExt
{
/// If true, sampling will be forced to be greedy.
...
...
lib/llm/src/protocols/openai/responses.rs
View file @
f63e273c
...
...
@@ -11,6 +11,7 @@ use dynamo_async_openai::types::{
};
use
dynamo_runtime
::
protocols
::
annotated
::
AnnotationsProvider
;
use
serde
::{
Deserialize
,
Serialize
};
use
utoipa
::
ToSchema
;
use
uuid
::
Uuid
;
use
validator
::
Validate
;
...
...
@@ -18,8 +19,9 @@ use super::chat_completions::{NvCreateChatCompletionRequest, NvCreateChatComplet
use
super
::
nvext
::{
NvExt
,
NvExtProvider
};
use
super
::{
OpenAISamplingOptionsProvider
,
OpenAIStopConditionsProvider
};
#[derive(Serialize,
Deserialize,
Validate,
Debug,
Clone)]
#[derive(
ToSchema,
Serialize,
Deserialize,
Validate,
Debug,
Clone)]
pub
struct
NvCreateResponse
{
/// Flattened CreateResponse fields (model, input, temperature, etc.)
#[serde(flatten)]
pub
inner
:
dynamo_async_openai
::
types
::
responses
::
CreateResponse
,
...
...
@@ -27,8 +29,9 @@ pub struct NvCreateResponse {
pub
nvext
:
Option
<
NvExt
>
,
}
#[derive(Serialize,
Deserialize,
Validate,
Debug,
Clone)]
#[derive(
ToSchema,
Serialize,
Deserialize,
Validate,
Debug,
Clone)]
pub
struct
NvResponse
{
/// Flattened Response fields.
#[serde(flatten)]
pub
inner
:
dynamo_async_openai
::
types
::
responses
::
Response
,
...
...
Prev
1
2
Next
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