Skip to content

Commit f0f603b

Browse files
committed
update README
1 parent e6237ac commit f0f603b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

apps/postgres-new/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,20 @@ Both databases are stored locally in the browser via IndexedDB. This means that
1313

1414
Every PGlite instance runs in a Web Worker so that the main thread is not blocked.
1515

16+
1617
## AI
1718

18-
The AI component is powered by OpenAI's GPT-4o model. The project uses [Vercel's AI SDK ](https://sdk.vercel.ai/docs/introduction) to simplify message streams and tool calls.
19+
The AI component is powered by OpenAI's GPT-4o model by default. The project uses [Vercel's AI SDK](https://sdk.vercel.ai/docs/introduction) to simplify message streams and tool calls.
20+
21+
### Environment Variables
22+
23+
In addition to the required `OPENAI_API_KEY`, the following environment variables can be configured:
24+
25+
- `OPENAI_API_BASE`: (Optional) The base URL for the OpenAI API. Defaults to `https://api.openai.com/v1`.
26+
- `OPENAI_MODEL`: (Optional) The model used by the AI component. Defaults to `gpt-4o-2024-08-06`.
27+
28+
**NOTE**: The current prompts and tools are designed around the GPT-4o model. If you choose to use a different model, expect different behavior and results. Additionally, ensure that the model you select supports tool (function) call capabilities.
29+
1930

2031
## Authentication
2132

0 commit comments

Comments
 (0)