Files
Nicholas Tindle dfa0f3a820 Raise Enhancements up to the level of the prompts (#226)
* feat: raise the validations up

* feat: add error enhancements to the AI Block

* fix: extract the TODO_COMMENT to the constants

* fix: move ErrorEnhancements

* fix: move TODO_COMMENT

* feat: add interview ID to the log

* feat: enhancement is used in system prompt

* fix: imports in the gen_test

* feat: add decimal support

* fix(develop): don't error when the only issue is llm errors
2024-04-23 13:21:57 +01:00

23 lines
756 B
Python

PRISMA_FILE_HEADER = """
// datasource db defines the database connection settings.
// It is configured for PostgreSQL and uses an environment variable for the connection URL.
// The 'extensions' feature enables the use of PostgreSQL-specific data types.
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
// generator db configures Prisma Client settings.
// It is set up to use Prisma Client Python with asyncio interface and specific features.
generator db {
provider = "prisma-client-py"
interface = "asyncio"
recursive_type_depth = 5
previewFeatures = ["postgresqlExtensions"]
enable_experimental_decimal = true
}
"""
TODO_COMMENT = "# TODO(autogpt):"