-
Notifications
You must be signed in to change notification settings - Fork 2
Include api access OpenWebUI #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ShaivanBhagat
wants to merge
8
commits into
main
Choose a base branch
from
include-ollama
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
21ec2f1
include ollama manual
ShaivanBhagat aac0201
Apply suggestions
ShaivanBhagat 6c0d04e
update ollama
ShaivanBhagat 4d19b56
include suggestions
ShaivanBhagat a54ddf7
include api access
ShaivanBhagat d301cc5
Merge branch 'main' into include-ollama
ShaivanBhagat 280a8c5
include suggestion
ShaivanBhagat 39dc585
include http
ShaivanBhagat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -151,6 +151,38 @@ Open WebUI supports **Functions** that allow you to customize and extend how mod | |
| Do you want to use Ollama models from within Python code? Check out the [Ollama from Python manual](../../manuals/ollama.qmd) for instructions on setting up Ollama in Python workbench and UU VRE workspaces. | ||
| ::: | ||
|
|
||
| ## Using API Keys | ||
|
|
||
| If you want to interact with your Ollama models programmatically from scripts or applications instead of only using the web interface, you can enable API access. | ||
|
|
||
| You can use the [Open WebUI API keys](https://docs.openwebui.com/features/authentication-access/api-keys) to: | ||
|
|
||
| - Automate model interactions from scripts | ||
| - Integrate Ollama into data processing pipelines | ||
| - Batch process multiple documents | ||
| - Build custom applications using your models | ||
|
|
||
| ### Enabling API Access | ||
|
|
||
| Open WebUI API is disabled by default, however you can enable it during the last step of creating your workspace. | ||
|
|
||
| Under Workspace Parameters, you can enable API access by entering **`yes`** in the **"Expose OpenWebUI API (yes/no)"** parameter | ||
|
|
||
| ::: {.callout-tip} | ||
| Only enable the API if you need programmatic access. Exposing Open WebUI API bypasses SRAM authentication and uses API keys for security instead. | ||
| ::: | ||
|
|
||
| ### Setting Up and Using API Keys | ||
|
|
||
| To see how to create and set up an API Key, follow this manual: [Open WebUI API Keys Manual](https://docs.openwebui.com/features/authentication-access/api-keys#getting-started) | ||
|
|
||
| **API Endpoint:** The API is accessible at `https://your-workspace-url/ext/api` (Note: uses `/ext/api`, not `/api`) | ||
|
|
||
| Additional documentation on Open WebUI API access can be found here: [Open WebUI API Documentation](https://github.com/UtrechtUniversity/src-component-openwebui?tab=readme-ov-file#api) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe could add note or callout here, indicating that you can also add HTTP basic authentication (linking to the component docs for that is fine). This note or callout could be marked as for advanced users. |
||
|
|
||
| ::: {.callout-important} | ||
| Do not share your API keys with anyone, and do not expose them in public code repositories. Treat them like passwords to prevent unauthorized access to your models and data. | ||
| ::: | ||
|
|
||
|
|
||
| ::: {.callout-tip} | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.