Skip to content

Commit

Permalink
Add some custom examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nashvi committed Sep 15, 2024
1 parent eeb671b commit 8896810
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,19 @@ OpenAI and Ollama Clients
- Default model can be overridden using `--model`
- Importing and exporting of Ollama models
- Connection details managed through environment variables

Control some options with the following code.
```
$env.OLLAMA_HOST = 'http://localhost:11434'
$env.OPENAI_HOST = 'http://localhost:11434'
$env.OPENAI_API_KEY = 'secret'
$env.OPENAI_PROMPT = $env.OPENAI_PROMPT
| insert 'json2rust' {
prompt: [
"Analyze the following JSON data to convert it into a Rust struct:"
"```{}```"
]
model: '',
description: 'Analyze JSON content, converting it into a Rust struct'
}
```

0 comments on commit 8896810

Please sign in to comment.