This commit is contained in:
Daniel Rosehill 2025-04-11 20:34:36 +03:00
parent de9bae0004
commit 8f7717db55
No known key found for this signature in database
2 changed files with 3 additions and 27 deletions

View File

@ -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]"
}

View File

@ -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.