Skip to content

Commit

Permalink
docs: ✏️ update model alias section and json title
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 13, 2024
1 parent 76ba537 commit 8b48638
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/src/content/docs/reference/scripts/model-aliases.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The following configuration are support in order importance (last one wins):

- [configuration file](/genaiscript/reference/configuration-files) with the `modelAliases` field

```json title="genaiscript.config.js"
```json title="genaiscript.config.json"
{
"modelAliases": {
"llama32": "ollama:llama3.2:1b"
Expand All @@ -61,6 +61,19 @@ The following configuration are support in order importance (last one wins):
genaiscript run --model-alias llama32=ollama:llama3.2:1b
```

## Alias of aliases

An model alias can reference another alias as long as cycles are not created.

```json title="genaiscript.config.json"
{
"modelAliases": {
"llama32": "ollama:llama3.2:1b",
"llama": "llama32"
}
}
```

## Builtin aliases

By default, GenAIScript supports the following model aliases:
Expand Down

0 comments on commit 8b48638

Please sign in to comment.