Skip to content

Commit

Permalink
fix secret queries (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
dorbanianas authored Dec 7, 2024
1 parent d081e2e commit d9e4425
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 18 deletions.
3 changes: 0 additions & 3 deletions docs/docs/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ Refer to the [Model Management](/docs/resource-management/model-management) sect
</Collapse>

<Collapse title="How do I set up secrets for providers?">
Secrets are configured using commands like:
- `CREATE SECRET OPENAI="d-key-goes-here";`
- `UPDATE SECRET AZURE="d-key-goes-here";`
Check the [Secrets Management](/docs/resource-management/secret-management) section for a step-by-step guide.
</Collapse>

Expand Down
20 changes: 10 additions & 10 deletions docs/docs/resource-management/secret-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Secrets can be created with the `CREATE SECRET` SQL command. Temporary secrets a

```sql
CREATE SECRET (
TYPE OPENAI
TYPE OPENAI,
API_KEY 'your-api-key'
);
```
Expand All @@ -34,7 +34,7 @@ This creates a secret named `__default_openai`.

```sql
CREATE SECRET (
TYPE OLLAMA
TYPE OLLAMA,
API_URL '127.0.0.1:11434'
);
```
Expand All @@ -45,9 +45,9 @@ This creates a secret named `__default_ollama`.

```sql
CREATE SECRET (
TYPE AZURE
API_KEY 'your-key-here'
RESOURCE_NAME 'resource-name'
TYPE AZURE,
API_KEY 'your-key-here',
RESOURCE_NAME 'resource-name',
API_VERSION 'api-version'
);
```
Expand All @@ -62,7 +62,7 @@ To persist secrets across DuckDB sessions, use `CREATE PERSISTENT SECRET`:

```sql
CREATE PERSISTENT SECRET (
TYPE OPENAI
TYPE OPENAI,
API_KEY 'your-api-key'
);
```
Expand All @@ -71,7 +71,7 @@ CREATE PERSISTENT SECRET (

```sql
CREATE PERSISTENT SECRET (
TYPE OLLAMA
TYPE OLLAMA,
API_URL '127.0.0.1:11434'
);
```
Expand All @@ -80,9 +80,9 @@ CREATE PERSISTENT SECRET (

```sql
CREATE PERSISTENT SECRET (
TYPE AZURE
API_KEY 'your-key-here'
RESOURCE_NAME 'resource-name'
TYPE AZURE,
API_KEY 'your-key-here',
RESOURCE_NAME 'resource-name',
API_VERSION 'api-version'
);
```
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/supported-providers/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ To use the Azure API, configure it using the secret manager. Use the following q

```sql
CREATE SECRET (
TYPE AZURE
API_KEY 'your-key-here'
RESOURCE_NAME 'resource-name'
TYPE AZURE,
API_KEY 'your-key-here',
RESOURCE_NAME 'resource-name',
API_VERSION 'api-version'
);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/supported-providers/ollama.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Specify the Ollama URL using the DuckDB secret manager. Use the following query:

```sql
CREATE SECRET (
TYPE OLLAMA
TYPE OLLAMA,
API_URL '127.0.0.1:11434'
);
```
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/supported-providers/openai.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Configure your OpenAI API key securely using the DuckDB secret manager with this

```sql
CREATE SECRET (
TYPE OPENAI
TYPE OPENAI,
API_KEY 'your-api-key'
);
```
Expand Down

0 comments on commit d9e4425

Please sign in to comment.