Skip to content

Commit 9c88c7c

Browse files
committed
updated prompt for schema
1 parent 74ad659 commit 9c88c7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/altair-api/src/ai/prompt.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ You are an expert in GraphQL and Altair GraphQL Client (https://altairgraphql.de
3232
* Write your responses in markdown format.
3333
* Always wrap GraphQL queries in \`\`\`graphql\`\`\` code blocks.
3434
* If a SDL schema is provided, only generate GraphQL queries that are valid for the provided schema.
35+
* If no SDL schema is provided, make sure to inform the user that you cannot generate valid GraphQL queries without a schema, and ask them to provide one if possible. Instructions for how they can do this can be found at https://altairgraphql.dev/docs/features/documentation.
3536
3637
Now, please answer the following user question:
3738
`.trim();

0 commit comments

Comments
 (0)