-
Home
-
SmartAIPress
-
1.1.0 (latest)
-
Code
-
Classes
- Smartaipress_Openai_Client
Total Complexity |
43 |
Dependencies |
0 |
Dependents |
1 |
Total lines |
531 |
Lines of code |
216 |
Logical lines of code |
111 |
Comment lines |
230 |
Methods |
10 |
Properties |
4 |
Methods 10
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
set_post_fields() |
A |
44 |
14 |
45 |
prompt() |
A |
39 |
8 |
69 |
set_prompt_url() |
S |
64 |
7 |
9 |
insert_prompt_in_db() |
S |
57 |
3 |
17 |
fetch_api_usage_for_day() |
S |
53 |
2 |
23 |
fetch_api_usage_data() |
S |
56 |
2 |
17 |
get_instance() |
S |
71 |
2 |
6 |
api_key() |
S |
71 |
2 |
6 |
calculate_max_tokens() |
S |
63 |
2 |
10 |
update_prompt_in_db() |
S |
59 |
1 |
14 |