First ask to your favorite model to write an openapi definition YAML file for based on the project you are working on or to brainstorm on your project structure.
For example you can try with the knwon Petstore.
💡 Remember how mormot RTTI / SOA handle request body (json object or array) based on arguments types, check the doc.
Create a folder that will be used to pack the codebase. Start to copy folders from mORMot v2 in this folder:
- For all folders, get rid of any
*.exe
,*.db
and others artifacts we dont care about - they will eat tokens.ex
you can include the whole example folder.tests
choose the best parts that suit your needs.src
choose the best part that suit your needs.
💡 The aim here is to get the maximum of code implementation and examples.
Now pack the whole folder. Install and use cli repomix or drag the folder in your browser repomix page. You can of course try any File Processing options.
https://github.com/yamadashy/repomix?tab=readme-ov-file#using-the-cli-tool-_
or https://repomix.com/ (choose markdown)
From there, try to get a maximum of 900,000 tokens results - you will still get arround 148,000 free tokens to interact with the model without bein required to delete messages from the chats (you can't send another message once you get into the max token limit).
- Paste the full prompt inspired by models-prompt
- Join the repomix file
- Apply good settings
- Run
Enjoy.