Skip to content

Jh llm context window#138

Merged
johannehouweling merged 3 commits intomainfrom
jh-llm-context-window
Apr 25, 2026
Merged

Jh llm context window#138
johannehouweling merged 3 commits intomainfrom
jh-llm-context-window

Conversation

@johannehouweling
Copy link
Copy Markdown
Owner

No description provided.

@johannehouweling
Copy link
Copy Markdown
Owner Author

Before merging needs updating of .env file on server to reflect context-window entries.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds “context window” metadata to the app’s LLM model signature and exposes it in the UI, plus makes the LLM signature badge link out to the Azure AI model catalog.

Changes:

  • Parse a new context-window Azure model tag and expose it as context_window on model entries.
  • Include context_window in llm_signature/LLM preference JSON payloads for UI display.
  • Update the offcanvas LLM signature badge to be a clickable link and show context window in the tooltip.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
myocyte/toxtempass/views.py Adds context_window to the LLM signature returned by set_llm_preference.
myocyte/toxtempass/templates/toxtempass/base_extras/user_offcanvas.html Makes the signature badge an external link to Azure catalog; shows context window in tooltip; updates JS tooltip content/href.
myocyte/toxtempass/context_processors.py Adds context_window to the llm_signature dict injected into templates.
myocyte/toxtempass/azure_registry.py Allowlists context-window tag and adds ModelEntry.context_window parser.
.env.dummy Demonstrates context-window tag usage for a model.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread myocyte/toxtempass/templates/toxtempass/base_extras/user_offcanvas.html Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@johannehouweling johannehouweling merged commit d6ea3fe into main Apr 25, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants