Table of Contents

Method FromGenAiConfig

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

FromGenAiConfig(string, long)

Reads the geometry out of a genai_config.json body.

public static ChatModelShape FromGenAiConfig(string json, long weightsBytes)

Parameters

json string

The file's text.

weightsBytes long

The preset manifest's Graph plus GraphExternalData sizes. The config does not state it, so it is supplied rather than read.

Returns

ChatModelShape

The parsed shape.

Exceptions

ArgumentNullException

json is null.

EdgeChatException

ChatConfigurationInvalid (7007), naming the file and the offending field.