Repository navigation
Conversation
WebWright serves an OpenAI-compatible chat completions API at https://webwright.ai/v1 with the Wren R1 model. This adds a WebWright provider that reuses the shared BaseChatOpenAI implementation, plus its credential (API base URL and API key), the wren-r1 model entry, the provider icon, and the provider registration in the constants enum and the UI provider list.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What this adds
A WebWright model provider. WebWright serves an OpenAI-compatible chat completions API at
https://webwright.ai/v1with the Wren R1 model.The provider follows the existing OpenAI-compatible provider pattern in this repository. The chat model reuses the shared
BaseChatOpenAIimplementation, so the change is a thin wrapper plus its registration.Files
apps/models_provider/impl/webwright_model_provider/is the new provider package:webwright_model_provider.pyregisters the provider and thewren-r1model.credential/llm.pycollects the API base URL, defaulting tohttps://webwright.ai/v1, and an API key.model/llm.pyis the chat model, built onBaseChatOpenAI.icon/webwright_icon_svgis the provider icon.apps/models_provider/constants/model_provider_constants.pyimports and registers the provider.ui/src/components/dynamics-form/items/model/provider-data.tsadds the provider to the UI list.Notes
https://webwright.ai/v1. Model:wren-r1. Auth: bearer API key.Hellomessage, which matches the other OpenAI-compatible providers here.Disclosure
I work on WebWright, so this provider entry is an affiliated contribution. The endpoint and model id are the ones WebWright publishes. Happy to adjust anything to fit the project's conventions.