toV2


Description:

public Config2 toV2 ()

Converts this Config1 instance to a Config2 instance.

Creates a Config2 with a connection based on this Config1's url and api_key. The connection is set as the default connection. Preserves model and title_model as ModelUsage objects in Config2's usage map.

Returns:

A new Config2 instance with the migrated configuration