8000 Integrate AI feedback for tests results (#248) · fabioacl/python-tutorial@caf4594 · GitHub
[go: up one dir, main page]

Skip to content

Commit caf4594

Browse files
edoardob90pre-commit-ci[bot]despadamSnowwpanda
authored
Integrate AI feedback for tests results (empa-scientific-it#248)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Despina Adamopoulou <16343312+despadam@users.noreply.github.com> Co-authored-by: Snowwpanda <pascal.su@empa.ch>
1 parent 04ab64c commit caf4594

File tree

8 files changed

+1448
-240
lines changed

8 files changed

+1448
-240
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ venv/
109109
ENV/
110110
env.bak/
111111
venv.bak/
112+
openai.env
112113

113114
# Spyder project settings
114115
.spyderproject

binder/environment.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ dependencies:
2121
- scikit-learn
2222
- attrs
2323
- multiprocess
24+
- openai
25+
- tenacity
26+
- markdown2
27+
- python-dotenv

intro.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@
372372
"%%ipytest\n",
373373
"\n",
374374
"def solution_sum_two_numbers(a: int, b: int) -> int:\n",
375-
" wrong_sum = a - b\n",
375+
" wrong_sum = a - b -\n",
376376
" return wrong_sum"
377377
]
378378
},
@@ -469,7 +469,7 @@
469469
"name": "python",
470470
"nbconvert_exporter": "python",
471471
"pygments_lexer": "ipython3",
472-
"version": "3.11.3"
472+
"version": "3.10.15"
473473
},
474474
"vscode": {
475475
"interpreter": {

openai.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
OPENAI_API_KEY="sk-**********" # your OpenAI API key
2+
OPENAI_MODEL="gpt-4o-mini" # the model you want to use
3+
OPENAI_LANGUAGE="English" # the language you want to use

0 commit comments

Comments
 (0)
0