X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/6d1d9d9a7cf90b25a2e10af1c5bc56faee7e494c..7cc0014244124aea59672904de65a979a8e5fb2c:/chatgpt_test.go diff --git a/chatgpt_test.go b/chatgpt_test.go index 982a6ff..c6db9bd 100644 --- a/chatgpt_test.go +++ b/chatgpt_test.go @@ -192,7 +192,7 @@ func TestModelEndpointFollowsTheConfig(t *testing.T) { require.IsType(t, &ChatGPTAuth{}, auth) require.Equal(t, filepath.Join(dir, chatgptTokenFileName), auth.(*ChatGPTAuth).path) - config.Endpoint = endpointAPI + config.Endpoint = configEndpointAPI address, auth, err = modelEndpoint(config, dir) require.NoError(t, err) require.Equal(t, modelAPIURL, address)