You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/helpers/AI.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -22,11 +22,11 @@ Use it only in development mode. It is recommended to run it only inside pause()
22
22
23
23
This helper should be configured in codecept.conf.{js|ts}
24
24
25
-
-`chunkSize`: - The maximum number of characters to send to the AI API at once. We split HTML fragments by 8000 chars to not exceed token limit. Increase this value if you use GPT-4.
25
+
*`chunkSize`: - The maximum number of characters to send to the AI API at once. We split HTML fragments by 8000 chars to not exceed token limit. Increase this value if you use GPT-4.
26
26
27
27
### Parameters
28
28
29
-
-`config`
29
+
*`config` 
30
30
31
31
### askForPageObject
32
32
@@ -50,21 +50,21 @@ Asks for a page object based on the provided page name, locator, and extra promp
50
50
51
51
#### Parameters
52
52
53
-
-`pageName`**[string][1]** The name of the page to retrieve the object for.
54
-
-`extraPrompt`**([string][1] | null)** An optional extra prompt for additional context or information.
55
-
-`locator`**([string][1] | null)** An optional locator to find a specific element on the page.
53
+
*`pageName`**[string][1]** The name of the page to retrieve the object for.
54
+
*`extraPrompt`**([string][1] | null)** An optional extra prompt for additional context or information.
55
+
*`locator`**([string][1] | null)** An optional locator to find a specific element on the page.
56
56
57
-
Returns **[Promise][2]<[Object][3]>** A promise that resolves to the requested page object.
57
+
Returns **[Promise][2]<[Object][3]>** A promise that resolves to the requested page object.
58
58
59
59
### askGptGeneralPrompt
60
60
61
61
Send a general request to AI and return response.
62
62
63
63
#### Parameters
64
64
65
-
-`prompt`**[string][1]**
65
+
*`prompt`**[string][1]** 
66
66
67
-
Returns **[Promise][2]<[string][1]>** A Promise that resolves to the generated response from the GPT model.
67
+
Returns **[Promise][2]<[string][1]>** A Promise that resolves to the generated response from the GPT model.
68
68
69
69
### askGptOnPage
70
70
@@ -76,9 +76,9 @@ I.askGptOnPage('what does this page do?');
76
76
77
77
#### Parameters
78
78
79
-
-`prompt`**[string][1]** The question or prompt to ask the GPT model.
79
+
*`prompt`**[string][1]** The question or prompt to ask the GPT model.
80
80
81
-
Returns **[Promise][2]<[string][1]>** A Promise that resolves to the generated responses from the GPT model, joined by newlines.
81
+
Returns **[Promise][2]<[string][1]>** A Promise that resolves to the generated responses from the GPT model, joined by newlines.
82
82
83
83
### askGptOnPageFragment
84
84
@@ -90,10 +90,10 @@ I.askGptOnPageFragment('describe features of this screen', '.screen');
90
90
91
91
#### Parameters
92
92
93
-
-`prompt`**[string][1]** The question or prompt to ask the GPT-3.5 model.
94
-
-`locator`**[string][1]** The locator or selector used to identify the HTML fragment on the page.
93
+
*`prompt`**[string][1]** The question or prompt to ask the GPT-3.5 model.
94
+
*`locator`**[string][1]** The locator or selector used to identify the HTML fragment on the page.
95
95
96
-
Returns **[Promise][2]<[string][1]>** A Promise that resolves to the generated response from the GPT model.
96
+
Returns **[Promise][2]<[string][1]>** A Promise that resolves to the generated response from the GPT model.
0 commit comments