Backend messages and field descriptions that reach the UI lose their em-dashes
Per the Microcopy rule: size and duration errors, the flavor errors, run parameter errors, the Resources field descriptions, 401/409/400 details, secret errors, the websocket node description and its on_connect setting. The generated client follows.
This commit is contained in:
@@ -2764,7 +2764,7 @@ export const NodeDef_InputSchema = {
|
||||
type: 'null'
|
||||
}
|
||||
],
|
||||
description: "What one execution of this node holds while it runs. Absent — the default — means it is not accounted for and shares the engine's workers, which is right for everything that is not compute-heavy."
|
||||
description: "What one execution of this node holds while it runs. Absent (the default) means it is not accounted for and shares the engine's workers, which is right for everything that is not compute-heavy."
|
||||
},
|
||||
code_files: {
|
||||
additionalProperties: {
|
||||
@@ -2777,7 +2777,7 @@ export const NodeDef_InputSchema = {
|
||||
code_digest: {
|
||||
type: 'string',
|
||||
title: 'Code Digest',
|
||||
description: 'What those modules hashed to at sync. The engine hashes them again when a run is claimed, and falls back to this when it cannot see the files — a worker on another machine.',
|
||||
description: 'What those modules hashed to at sync. The engine hashes them again when a run is claimed, and falls back to this when it cannot see the files, as a worker on another machine does.',
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
@@ -2884,7 +2884,7 @@ export const NodeDef_OutputSchema = {
|
||||
type: 'null'
|
||||
}
|
||||
],
|
||||
description: "What one execution of this node holds while it runs. Absent — the default — means it is not accounted for and shares the engine's workers, which is right for everything that is not compute-heavy."
|
||||
description: "What one execution of this node holds while it runs. Absent (the default) means it is not accounted for and shares the engine's workers, which is right for everything that is not compute-heavy."
|
||||
},
|
||||
code_files: {
|
||||
additionalProperties: {
|
||||
@@ -2897,7 +2897,7 @@ export const NodeDef_OutputSchema = {
|
||||
code_digest: {
|
||||
type: 'string',
|
||||
title: 'Code Digest',
|
||||
description: 'What those modules hashed to at sync. The engine hashes them again when a run is claimed, and falls back to this when it cannot see the files — a worker on another machine.',
|
||||
description: 'What those modules hashed to at sync. The engine hashes them again when a run is claimed, and falls back to this when it cannot see the files, as a worker on another machine does.',
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
@@ -3693,7 +3693,7 @@ export const ResourcesSchema = {
|
||||
}
|
||||
],
|
||||
title: 'Ram',
|
||||
description: "Megabytes held for the whole execution; accepts '512M' or '2G'. Counted against machines that said how much they have, and ignored by those that did not — which is a machine with nothing to say about memory, not one with none."
|
||||
description: "Megabytes held for the whole execution; accepts '512M' or '2G'. Counted against machines that said how much they have, and ignored by those that did not, which is a machine with nothing to say about memory, not one with none."
|
||||
},
|
||||
flavor: {
|
||||
anyOf: [
|
||||
@@ -3718,7 +3718,7 @@ export const ResourcesSchema = {
|
||||
}
|
||||
],
|
||||
title: 'Duration S',
|
||||
description: "How long one execution is expected to take; accepts '30m' or '2h'. A statement about the node for whoever is planning around it, not a limit — the limit is `timeout`."
|
||||
description: "How long one execution is expected to take; accepts '30m' or '2h'. A statement about the node for whoever is planning around it, not a limit. The limit is `timeout`."
|
||||
},
|
||||
env: {
|
||||
additionalProperties: {
|
||||
@@ -3726,7 +3726,7 @@ export const ResourcesSchema = {
|
||||
},
|
||||
type: 'object',
|
||||
title: 'Env',
|
||||
description: "Extra environment for the worker this node runs in, applied over what the allocation derives. Where a library's own tuning goes — XLA_FLAGS, XLA_PYTHON_CLIENT_MEM_FRACTION — since those are composed strings the engine must not invent."
|
||||
description: "Extra environment for the worker this node runs in, applied over what the allocation derives. Where a library's own tuning goes (XLA_FLAGS, XLA_PYTHON_CLIENT_MEM_FRACTION), since those are composed strings the engine must not invent."
|
||||
}
|
||||
},
|
||||
additionalProperties: false,
|
||||
|
||||
@@ -928,7 +928,7 @@ export type NodeDef_Input = {
|
||||
*/
|
||||
cache?: boolean;
|
||||
/**
|
||||
* What one execution of this node holds while it runs. Absent — the default — means it is not accounted for and shares the engine's workers, which is right for everything that is not compute-heavy.
|
||||
* What one execution of this node holds while it runs. Absent (the default) means it is not accounted for and shares the engine's workers, which is right for everything that is not compute-heavy.
|
||||
*/
|
||||
resources?: (Resources | null);
|
||||
/**
|
||||
@@ -938,7 +938,7 @@ export type NodeDef_Input = {
|
||||
[key: string]: (string);
|
||||
};
|
||||
/**
|
||||
* What those modules hashed to at sync. The engine hashes them again when a run is claimed, and falls back to this when it cannot see the files — a worker on another machine.
|
||||
* What those modules hashed to at sync. The engine hashes them again when a run is claimed, and falls back to this when it cannot see the files, as a worker on another machine does.
|
||||
*/
|
||||
code_digest?: string;
|
||||
};
|
||||
@@ -982,7 +982,7 @@ export type NodeDef_Output = {
|
||||
*/
|
||||
cache?: boolean;
|
||||
/**
|
||||
* What one execution of this node holds while it runs. Absent — the default — means it is not accounted for and shares the engine's workers, which is right for everything that is not compute-heavy.
|
||||
* What one execution of this node holds while it runs. Absent (the default) means it is not accounted for and shares the engine's workers, which is right for everything that is not compute-heavy.
|
||||
*/
|
||||
resources?: (Resources | null);
|
||||
/**
|
||||
@@ -992,7 +992,7 @@ export type NodeDef_Output = {
|
||||
[key: string]: (string);
|
||||
};
|
||||
/**
|
||||
* What those modules hashed to at sync. The engine hashes them again when a run is claimed, and falls back to this when it cannot see the files — a worker on another machine.
|
||||
* What those modules hashed to at sync. The engine hashes them again when a run is claimed, and falls back to this when it cannot see the files, as a worker on another machine does.
|
||||
*/
|
||||
code_digest?: string;
|
||||
};
|
||||
@@ -1232,7 +1232,7 @@ export type Resources = {
|
||||
*/
|
||||
gpus?: number;
|
||||
/**
|
||||
* Megabytes held for the whole execution; accepts '512M' or '2G'. Counted against machines that said how much they have, and ignored by those that did not — which is a machine with nothing to say about memory, not one with none.
|
||||
* Megabytes held for the whole execution; accepts '512M' or '2G'. Counted against machines that said how much they have, and ignored by those that did not, which is a machine with nothing to say about memory, not one with none.
|
||||
*/
|
||||
ram?: (number | null);
|
||||
/**
|
||||
@@ -1240,11 +1240,11 @@ export type Resources = {
|
||||
*/
|
||||
flavor?: (string | null);
|
||||
/**
|
||||
* How long one execution is expected to take; accepts '30m' or '2h'. A statement about the node for whoever is planning around it, not a limit — the limit is `timeout`.
|
||||
* How long one execution is expected to take; accepts '30m' or '2h'. A statement about the node for whoever is planning around it, not a limit. The limit is `timeout`.
|
||||
*/
|
||||
duration_s?: (number | null);
|
||||
/**
|
||||
* Extra environment for the worker this node runs in, applied over what the allocation derives. Where a library's own tuning goes — XLA_FLAGS, XLA_PYTHON_CLIENT_MEM_FRACTION — since those are composed strings the engine must not invent.
|
||||
* Extra environment for the worker this node runs in, applied over what the allocation derives. Where a library's own tuning goes (XLA_FLAGS, XLA_PYTHON_CLIENT_MEM_FRACTION), since those are composed strings the engine must not invent.
|
||||
*/
|
||||
env?: {
|
||||
[key: string]: (string);
|
||||
|
||||
Reference in New Issue
Block a user