Table of Contents

Method TryFromGenAiConfig

Namespace
Qavren.Edge.Chat
Assembly
Qavren.Edge.Chat.Onnx.dll

TryFromGenAiConfig(string, long, out ChatModelShape?, out string?)

Reads the geometry out of a genai_config.json body without throwing.

public static bool TryFromGenAiConfig(string json, long weightsBytes, out ChatModelShape? shape, out string? error)

Parameters

json string

The file's text.

weightsBytes long

The preset manifest's resident-weight total.

shape ChatModelShape

The parsed shape, or null.

error string

Null on success; otherwise a message naming the file and the field.

Returns

bool

true when the config parsed and is coherent.

Exceptions

ArgumentNullException

json is null.