Field ChatEnvironment
Creates the one process-wide OgaHandle, disables telemetry, and checks the RID
and ABI. Must run after EdgeAiStartupOrder.OnnxEnvironment (200): ORT GenAI
creates ORT's process-wide OrtEnv from NATIVE code on its first call
(OrtGlobals::OrtGlobals() : env_{OrtEnv::Create(...)}), and sub-project 2's managed
OrtEnv.IsCreated guard cannot see that - so touching any GenAI type before order 200
silently costs sub-project 2 its log id, its severity and its DOrtLoggingFunction
bridge, with no error anywhere. See spec section 9.1.
public const int ChatEnvironment = 400
Returns
- int
- Creates the one process-wide OgaHandle, disables telemetry, and checks the RID and ABI. Must run after EdgeAiStartupOrder.OnnxEnvironment (200): ORT GenAI creates ORT's process-wide OrtEnv from NATIVE code on its first call (OrtGlobals::OrtGlobals() : env_{OrtEnv::Create(...)}), and sub-project 2's managed OrtEnv.IsCreated guard cannot see that - so touching any GenAI type before order 200 silently costs sub-project 2 its log id, its severity and its DOrtLoggingFunction bridge, with no error anywhere. See spec section 9.1.