jucasoliveira / terminalGPT

Get GPT like chatGPT on your terminal
MIT License
1.01k stars 182 forks source link

Conversion to typescript, code improvements and implementing custom endpoint #75

Closed Glydric closed 1 year ago

Glydric commented 1 year ago

Hi, i worked on improve the repo, i tested the api, i cannot test the original chatgpt api endpoint but there are no reason why they shouldn't work as the custom endpoint work correctly. Suggested to give it a run with a standard openai endpoint

github-actions[bot] commented 1 year ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
πŸ”΄ Statements
43.26% (+3.01% πŸ”Ό)
61/141
πŸ”΄ Branches
2.5% (-5.19% πŸ”»)
1/40
πŸ”΄ Functions
22.73% (+1.89% πŸ”Ό)
5/22
πŸ”΄ Lines
43.38% (+2.62% πŸ”Ό)
59/136
Show new covered files 🐣
|
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :----------------------------------------------------------------------------------------------------------------------------------------------------: | :---------- | :--------- | :------- | :-------- | :----- | | πŸ”΄ | utils.ts | 25.93% | 0% | 16.67% | 25.93% | | 🟒 | encrypt.ts | 81.08% | 25% | 57.14% | 81.08% | | πŸ”΄ | gpt.ts | 17.86% | 0% | 0% | 17.86% | | 🟑 | context.ts | 66.67% | 100% | 0% | 75% | | πŸ”΄ | gradient.ts | 50% | 100% | 0% | 53.85% |

Test suite run success

8 tests passing in 2 suites.

Report generated by πŸ§ͺjest coverage report action from a783d892d110a2cd0dde21417ad2a1a535724ea4

Glydric commented 1 year ago

I also removed the multiple error bug and give a more specific description