numplot 0.0.7__tar.gz → 0.0.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {numplot-0.0.7 → numplot-0.0.8}/PKG-INFO +1 -2
- {numplot-0.0.7 → numplot-0.0.8}/numplot/task_1.py +0 -29
- {numplot-0.0.7 → numplot-0.0.8}/numplot.egg-info/PKG-INFO +1 -2
- {numplot-0.0.7 → numplot-0.0.8}/numplot.egg-info/requires.txt +0 -1
- {numplot-0.0.7 → numplot-0.0.8}/setup.py +2 -2
- {numplot-0.0.7 → numplot-0.0.8}/README.md +0 -0
- {numplot-0.0.7 → numplot-0.0.8}/numplot/__init__.py +0 -0
- {numplot-0.0.7 → numplot-0.0.8}/numplot/task_2.py +0 -0
- {numplot-0.0.7 → numplot-0.0.8}/numplot/task_3.py +0 -0
- {numplot-0.0.7 → numplot-0.0.8}/numplot/task_4.py +0 -0
- {numplot-0.0.7 → numplot-0.0.8}/numplot/task_5_1.py +0 -0
- {numplot-0.0.7 → numplot-0.0.8}/numplot/task_5_2.py +0 -0
- {numplot-0.0.7 → numplot-0.0.8}/numplot/task_5_3.py +0 -0
- {numplot-0.0.7 → numplot-0.0.8}/numplot.egg-info/SOURCES.txt +0 -0
- {numplot-0.0.7 → numplot-0.0.8}/numplot.egg-info/dependency_links.txt +0 -0
- {numplot-0.0.7 → numplot-0.0.8}/numplot.egg-info/top_level.txt +0 -0
- {numplot-0.0.7 → numplot-0.0.8}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: numplot
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: Extension for math
|
|
5
5
|
Home-page: https://github.com/EgorZhizhlo/TASK_CONTROL
|
|
6
6
|
Author: amogusbazed
|
|
@@ -13,7 +13,6 @@ Classifier: Operating System :: OS Independent
|
|
|
13
13
|
Requires-Python: >=3.6
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
Requires-Dist: requests>=2.25.1
|
|
16
|
-
Requires-Dist: openai>=0.28.0
|
|
17
16
|
Dynamic: author
|
|
18
17
|
Dynamic: author-email
|
|
19
18
|
Dynamic: classifier
|
|
@@ -1,28 +1,3 @@
|
|
|
1
|
-
"""import openai
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class GPTClient:
|
|
5
|
-
def __init__(self, api_key: str, model: str = "gpt-3.5-turbo-instruct-0914"):
|
|
6
|
-
self.api_key = api_key
|
|
7
|
-
self.model = model
|
|
8
|
-
openai.api_key = self.api_key
|
|
9
|
-
|
|
10
|
-
def send_request(self, prompt: str, max_tokens: int = 100, temperature: float = 0.7):
|
|
11
|
-
try:
|
|
12
|
-
response = openai.ChatCompletion.create(
|
|
13
|
-
model=self.model,
|
|
14
|
-
messages=[
|
|
15
|
-
{"role": "system", "content": "You are a helpful assistant."},
|
|
16
|
-
{"role": "user", "content": prompt}
|
|
17
|
-
],
|
|
18
|
-
max_tokens=max_tokens,
|
|
19
|
-
temperature=temperature,
|
|
20
|
-
)
|
|
21
|
-
return response["choices"][0]["message"]["content"].strip()
|
|
22
|
-
except Exception as e:
|
|
23
|
-
return f"Ошибка при запросе: {str(e)}"
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
1
|
def t_1(var=1, prompt=""):
|
|
27
2
|
if var == 1:
|
|
28
3
|
text = """
|
|
@@ -155,8 +130,4 @@ def t_1(var=1, prompt=""):
|
|
|
155
130
|
Средняя сумма стоимости пропавших билетов: 17200
|
|
156
131
|
Среднеквадратическое отклонение: 8602.97
|
|
157
132
|
"""
|
|
158
|
-
# if var == 30:
|
|
159
|
-
# API_KEY = "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"
|
|
160
|
-
# gpt_client = GPTClient(api_key=API_KEY)
|
|
161
|
-
# text = gpt_client.send_request(prompt=prompt)"""
|
|
162
133
|
return text
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: numplot
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: Extension for math
|
|
5
5
|
Home-page: https://github.com/EgorZhizhlo/TASK_CONTROL
|
|
6
6
|
Author: amogusbazed
|
|
@@ -13,7 +13,6 @@ Classifier: Operating System :: OS Independent
|
|
|
13
13
|
Requires-Python: >=3.6
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
15
|
Requires-Dist: requests>=2.25.1
|
|
16
|
-
Requires-Dist: openai>=0.28.0
|
|
17
16
|
Dynamic: author
|
|
18
17
|
Dynamic: author-email
|
|
19
18
|
Dynamic: classifier
|
|
@@ -8,7 +8,7 @@ def readme():
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='numplot',
|
|
11
|
-
version='0.0.
|
|
11
|
+
version='0.0.8',
|
|
12
12
|
author='amogusbazed',
|
|
13
13
|
author_email='amogusbazed@gmail.com',
|
|
14
14
|
description='Extension for math',
|
|
@@ -16,7 +16,7 @@ setup(
|
|
|
16
16
|
long_description_content_type='text/markdown',
|
|
17
17
|
url='https://github.com/EgorZhizhlo/TASK_CONTROL',
|
|
18
18
|
packages=find_packages(),
|
|
19
|
-
install_requires=['requests>=2.25.1'
|
|
19
|
+
install_requires=['requests>=2.25.1'],
|
|
20
20
|
classifiers=[
|
|
21
21
|
'Programming Language :: Python :: 3.13',
|
|
22
22
|
'License :: OSI Approved :: MIT License',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|