pycvtools
Functionality of the pyevaltool
- Automated testing of the bot response deployed gpt
pip install pyevaltool
To run
from pyevaltool import *
For GPT test -
url = '' # Add the frontend url
token = '' # add your token or key - Apim-Subscription-Key or Bearer token
# change the chat completion format if required.
# This code will work only if the question asked is at chat_completion_format['messages'][0]["content"]
chat_completion_format = {'chatId': '', 'siteInfo': {'domain': ''}, 'messages': [{'role': 'user', 'content': ''}], 'model': '', 'stream': False}
answer_loc = "['choices'][0]['messages'][0]['content']" #in string format
input_file = " " # Here you add your input file link
gpt_test(url,token,chat_completion_format,answer_loc,input_file,output_file = "output.csv" )
Release files for pyevaltool 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyevaltool-0.1.8.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyevaltool-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:7.5 kB
Release files / pyevaltool-0.1.8.tar.gz
| Download URL | pyevaltool-0.1.8.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c158b9c9301cfeaa0d478fef8fe6426c817cbc257bba62d51278308a7efda773
|
|
BLAKE2b-256 checksum How to use checksums |
f0f426144a62c0e7b6188ddabc41f2be37803483d140b23457920fa56973a92a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / pyevaltool-0.1.8-py3-none-any.whl
| Download URL | pyevaltool-0.1.8-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
36c3a9b2704bce7bed8d61b89ebb8888b3ac67830a1a6ed523ea44e84fe7c2da
|
|
BLAKE2b-256 checksum How to use checksums |
6dae78f7abdb72885154aba426bd575547c452d20c22bf36727aabc61e303e4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|