Method FromGenAiConfig
FromGenAiConfig(string, long)
Reads the geometry out of a genai_config.json body.
public static ChatModelShape FromGenAiConfig(string json, long weightsBytes)
Parameters
jsonstringThe file's text.
weightsByteslongThe preset manifest's
GraphplusGraphExternalDatasizes. The config does not state it, so it is supplied rather than read.
Returns
- ChatModelShape
The parsed shape.
Exceptions
- ArgumentNullException
jsonis null.- EdgeChatException
ChatConfigurationInvalid (7007), naming the file and the offending field.