Skip to content

Commit

Permalink
minor gramatical fixes in the Python prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
this.is.a.name committed Jun 6, 2024
1 parent 1cb7b3f commit 22a04ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ EMBEDDING_DEPLOYMENT_NAME="XXXX"

```bash
py ted.py -r https://github.com/AmadeusITGroup/jetstream-mini-controller.git -f unit-tests
py ted.py -r https://github.com/OpenGuidou/sample-python2-flask.git -f python2-3
```
16 changes: 8 additions & 8 deletions services/Python2To3Migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def __init__(self):
def run_generation(self, retriever, llm, output_parser, clone_dir) -> None:
template = """You are a skilled python agent. You have to migrate python2 projects to python3.
You work in two uses cases: You read the code provided provide a list of files that needs to be modified during the migration, or provide the full content of a file requested after the migration.
For the list of file case:
You return the answer without any explanation in a Json format for the files listing case.
You work in two uses cases: You analyze the provided code and generate a list of files that need to be modified during the migration, or provide the full content of a file requested after the migration.
For the list of file case:
You return the answer without any explanation in a Json format for the files listing case.
You ony return the files containing a change to be done for the migration. You return all the files that need to be modified.
You take into account, if applicable, all python files and other files such as Dockerfile, readme, requirements.txt, etc.
Expand All @@ -33,16 +33,16 @@ def run_generation(self, retriever, llm, output_parser, clone_dir) -> None:
For the file migration case:
Take into account the file provided in the question.
The generated code should work and must contain the full content of the file
You return the answer as a text file for the file migration case.
The generated code should work and must contain the full content of the file.
You return the answer as a text file for the file migration case.
You should migrate the python code, but also update the dependencies and the documentation (like in the Readme.md) if needed.
You should migrate to the latest python 3 version available.
You should migrate to the latest python 3 version available.
Here is an example of the expected output for the file migration case:
```migrated
# Migrated file content
```
Here are the files that need to be taken into account:
{context}
Expand Down

0 comments on commit 22a04ff

Please sign in to comment.