mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
refac
Some checks are pending
Python CI / Ruff Format (3.11) (push) Waiting to run
Python CI / Ruff Format (3.12) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/amd64 runner:ubuntu-latest], map[build_args: free_disk:false name:main suffix:]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/amd64 runner:ubuntu-latest], map[build_args:USE_CUDA=true
USE_CUDA_VER=cu126
free_disk:true name:cuda126 suffix:-cuda126]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/amd64 runner:ubuntu-latest], map[build_args:USE_CUDA=true free_disk:true name:cuda suffix:-cuda]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/amd64 runner:ubuntu-latest], map[build_args:USE_OLLAMA=true free_disk:false name:ollama suffix:-ollama]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/amd64 runner:ubuntu-latest], map[build_args:USE_SLIM=true free_disk:false name:slim suffix:-slim]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/arm64 runner:ubuntu-24.04-arm], map[build_args: free_disk:false name:main suffix:]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/arm64 runner:ubuntu-24.04-arm], map[build_args:USE_CUDA=true
USE_CUDA_VER=cu126
free_disk:true name:cuda126 suffix:-cuda126]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/arm64 runner:ubuntu-24.04-arm], map[build_args:USE_CUDA=true free_disk:true name:cuda suffix:-cuda]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/arm64 runner:ubuntu-24.04-arm], map[build_args:USE_OLLAMA=true free_disk:false name:ollama suffix:-ollama]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/arm64 runner:ubuntu-24.04-arm], map[build_args:USE_SLIM=true free_disk:false name:slim suffix:-slim]) (push) Waiting to run
Create and publish Docker images with specific build args / merge (map[name:cuda suffix:-cuda]) (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge (map[name:cuda126 suffix:-cuda126]) (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge (map[name:main suffix:]) (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge (map[name:ollama suffix:-ollama]) (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge (map[name:slim suffix:-slim]) (push) Blocked by required conditions
Create and publish Docker images with specific build args / notify-helm-charts (push) Blocked by required conditions
Create and publish Docker images with specific build args / copy-to-dockerhub (, main) (push) Blocked by required conditions
Frontend Build / Unit Tests (push) Waiting to run
Create and publish Docker images with specific build args / copy-to-dockerhub (-cuda, cuda) (push) Blocked by required conditions
Create and publish Docker images with specific build args / copy-to-dockerhub (-cuda126, cuda126) (push) Blocked by required conditions
Create and publish Docker images with specific build args / copy-to-dockerhub (-ollama, ollama) (push) Blocked by required conditions
Create and publish Docker images with specific build args / copy-to-dockerhub (-slim, slim) (push) Blocked by required conditions
Frontend Build / Format & Build (push) Waiting to run
Some checks are pending
Python CI / Ruff Format (3.11) (push) Waiting to run
Python CI / Ruff Format (3.12) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/amd64 runner:ubuntu-latest], map[build_args: free_disk:false name:main suffix:]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/amd64 runner:ubuntu-latest], map[build_args:USE_CUDA=true
USE_CUDA_VER=cu126
free_disk:true name:cuda126 suffix:-cuda126]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/amd64 runner:ubuntu-latest], map[build_args:USE_CUDA=true free_disk:true name:cuda suffix:-cuda]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/amd64 runner:ubuntu-latest], map[build_args:USE_OLLAMA=true free_disk:false name:ollama suffix:-ollama]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/amd64 runner:ubuntu-latest], map[build_args:USE_SLIM=true free_disk:false name:slim suffix:-slim]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/arm64 runner:ubuntu-24.04-arm], map[build_args: free_disk:false name:main suffix:]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/arm64 runner:ubuntu-24.04-arm], map[build_args:USE_CUDA=true
USE_CUDA_VER=cu126
free_disk:true name:cuda126 suffix:-cuda126]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/arm64 runner:ubuntu-24.04-arm], map[build_args:USE_CUDA=true free_disk:true name:cuda suffix:-cuda]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/arm64 runner:ubuntu-24.04-arm], map[build_args:USE_OLLAMA=true free_disk:false name:ollama suffix:-ollama]) (push) Waiting to run
Create and publish Docker images with specific build args / build (map[arch:linux/arm64 runner:ubuntu-24.04-arm], map[build_args:USE_SLIM=true free_disk:false name:slim suffix:-slim]) (push) Waiting to run
Create and publish Docker images with specific build args / merge (map[name:cuda suffix:-cuda]) (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge (map[name:cuda126 suffix:-cuda126]) (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge (map[name:main suffix:]) (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge (map[name:ollama suffix:-ollama]) (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge (map[name:slim suffix:-slim]) (push) Blocked by required conditions
Create and publish Docker images with specific build args / notify-helm-charts (push) Blocked by required conditions
Create and publish Docker images with specific build args / copy-to-dockerhub (, main) (push) Blocked by required conditions
Frontend Build / Unit Tests (push) Waiting to run
Create and publish Docker images with specific build args / copy-to-dockerhub (-cuda, cuda) (push) Blocked by required conditions
Create and publish Docker images with specific build args / copy-to-dockerhub (-cuda126, cuda126) (push) Blocked by required conditions
Create and publish Docker images with specific build args / copy-to-dockerhub (-ollama, ollama) (push) Blocked by required conditions
Create and publish Docker images with specific build args / copy-to-dockerhub (-slim, slim) (push) Blocked by required conditions
Frontend Build / Format & Build (push) Waiting to run
This commit is contained in:
parent
fa4c7fe5e8
commit
0f5a58f5fb
2 changed files with 2 additions and 2 deletions
|
|
@ -2425,7 +2425,7 @@ DEFAULT_REALTIME_CALL_PROMPT_TEMPLATE = """You are the assistant in this chat, s
|
|||
generate_chat_completion connects your voice to the reasoning, conversation history, and tools configured for this chat. These are parts of one assistant. Speak in the first person; do not present the selected chat model as another assistant or describe its answer as a message from someone else.
|
||||
|
||||
Handle ordinary conversation yourself: greetings, small talk, thanks, acknowledgments, call-status exchanges, and requests to repeat, shorten, or rephrase an answer already available. Do not call generate_chat_completion for these. A pause, filler, or acknowledgment such as "okay" is not a new task. If the user's intent is unclear, ask a brief clarification instead of inventing a task.
|
||||
Call generate_chat_completion when the user asks a substantive question or requests work that needs new reasoning, information, or an action. This includes questions about your tools, capabilities, permissions, and model identity when the answer is not already available. The tools visible to this voice session are not the full set of tools available to the chat. Do not repeat a completed or pending request unless the user asks for new work, changes the request, or explicitly asks to retry.
|
||||
Call generate_chat_completion when the user asks a substantive question or requests work that needs new reasoning, information, or an action. For questions about your tools, capabilities, permissions, or model identity, call generate_chat_completion unless a previous result from that function already answers the question. Your voice-session tool list and these instructions do not answer those questions: the chat has its own configured tools and model. Do not repeat a completed or pending request unless the user asks for new work, changes the request, or explicitly asks to retry.
|
||||
When a tool call is needed, you may briefly acknowledge the request, such as "I'll check", then call generate_chat_completion. Do not offer to hand the user off or ask whether they want you to consult another model. Wait for the result before giving a substantive answer or claiming an action succeeded. Never invent capabilities or restrictions on describing tools.
|
||||
|
||||
After the result arrives, answer the user directly as the same assistant. Do not say "the backend says", "the other model found", or narrate internal handoffs during ordinary replies. This is a style preference, not a secrecy rule: you may explain the architecture when asked and speak tool names or capability details provided in the answer.
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ async def realtime_call(ws: WebSocket):
|
|||
{
|
||||
'type': 'function',
|
||||
'name': 'generate_chat_completion',
|
||||
'description': 'Handle substantive questions and tasks using the selected chat model, conversation history, and configured tools. Use when new reasoning, information, or actions are needed, including unknown details about chat tools, capabilities, permissions, or model identity. Do not use for small talk, acknowledgments, call status, clarification, repeating or rephrasing an available answer, or duplicating pending or completed work.',
|
||||
'description': 'Handle substantive questions and tasks using the selected chat model, conversation history, and configured tools. Use when new reasoning, information, or actions are needed. Always use for questions about chat tools, capabilities, permissions, or model identity unless a previous function result already answers them. Do not use for small talk, acknowledgments, call status, clarification, repeating or rephrasing an available answer, or duplicating pending or completed work.',
|
||||
'parameters': {
|
||||
'type': 'object',
|
||||
'properties': {'request': {'type': 'string'}},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue