mirror of
https://github.com/open-webui/docs
synced 2025-06-16 11:28:36 +00:00
updated
This commit is contained in:
parent
de9bae0004
commit
8f7717db55
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -3,5 +3,6 @@
|
||||
"no-inline-html": false,
|
||||
"link-image-reference-definitions": false,
|
||||
"fenced-code-language": false
|
||||
}
|
||||
},
|
||||
"window.title": "${rootName}${separator}${profileName}${separator}${appName}${separator}${activeEditorShort}${dirty}${separator}[Branch: update-url-params]"
|
||||
}
|
||||
|
||||
@ -134,29 +134,4 @@ This URL will:
|
||||
- Enable YouTube transcription, web search, and specified tools.
|
||||
- Display a call overlay.
|
||||
- Set an initial prompt of "Hello there."
|
||||
- Mark the chat as temporary, avoiding any history saving.
|
||||
|
||||
## Programmatic URL Generation
|
||||
|
||||
When generating URLs programmatically, ensure all parameters are properly URL-encoded:
|
||||
|
||||
```javascript
|
||||
const baseUrl = 'https://openwebui.com/';
|
||||
const params = new URLSearchParams({
|
||||
models: 'gpt-4,claude-3',
|
||||
'web-search': 'true',
|
||||
tools: 'calculator,weather',
|
||||
q: 'What is the weather forecast?'
|
||||
});
|
||||
|
||||
const fullUrl = `${baseUrl}?${params.toString()}`;
|
||||
// Results in: https://openwebui.com/?models=gpt-4%2Cclaude-3&web-search=true&tools=calculator%2Cweather&q=What+is+the+weather+forecast%3F
|
||||
```
|
||||
|
||||
## URL Shortening
|
||||
|
||||
Open WebUI provides URL shortening for sharing chat sessions:
|
||||
|
||||
| **Route** | **Description** | **Example** |
|
||||
|-----------|-----------------|-------------|
|
||||
| `/s/[short-id]` | Shortened URL for sharing | `https://openwebui.com/s/abc123` |
|
||||
- Mark the chat as temporary, avoiding any history saving.
|
||||
Loading…
Reference in New Issue
Block a user