Initial TrueGrowth source import
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
## ADDED Requirements
|
||||
### Requirement: Pass Local Image Extension Parameters
|
||||
The system SHALL pass common local image runtime parameters through generic OpenAI-compatible image generation requests.
|
||||
|
||||
#### Scenario: Local image request includes advanced parameters
|
||||
- **GIVEN** an image generation request includes `negative_prompt`, `steps`, `cfg_scale`, or `seed`
|
||||
- **AND** the selected binding uses `openai.image.basic-json`
|
||||
- **WHEN** the image adapter sends `/images/generations`
|
||||
- **THEN** the request body SHALL include those parameters alongside `model`, `prompt`, and `size`
|
||||
|
||||
### Requirement: Keep Generated Local Images In Existing Results Flow
|
||||
The system SHALL handle local image generation results using the existing task and media result flow.
|
||||
|
||||
#### Scenario: Local provider returns image data
|
||||
- **GIVEN** a local OpenAI-compatible image service returns image URLs or base64 image data
|
||||
- **WHEN** the image task completes
|
||||
- **THEN** the task result SHALL be normalized like online provider image results
|
||||
- **AND** the image SHALL remain eligible for canvas insertion and media library reuse
|
||||
|
||||
### Requirement: Apply Installed Local Image Models From Model Center
|
||||
The system SHALL allow installed local image model assets to be applied as the default image generation model.
|
||||
|
||||
#### Scenario: User applies local image model
|
||||
- **GIVEN** a local image model asset is installed in Model Center
|
||||
- **WHEN** the user selects "apply to image generation"
|
||||
- **THEN** the system SHALL create or update a no-auth OpenAI-compatible local image provider profile
|
||||
- **AND** add the model to that provider catalog
|
||||
- **AND** set the active image invocation route to that model
|
||||
@@ -0,0 +1,18 @@
|
||||
## ADDED Requirements
|
||||
### Requirement: Route Local Image Models Through Basic OpenAI Image Binding
|
||||
The system SHALL route local OpenAI-compatible image models through the generic OpenAI image generation binding.
|
||||
|
||||
#### Scenario: Local image model is selected
|
||||
- **GIVEN** a local provider profile exposes an image model from `/v1/models`
|
||||
- **WHEN** image bindings are inferred for that model
|
||||
- **THEN** the selected binding SHALL use protocol `openai.images.generations`
|
||||
- **AND** request schema `openai.image.basic-json`
|
||||
- **AND** submit path `/images/generations`
|
||||
|
||||
### Requirement: Support No-Auth Provider Transport
|
||||
The system SHALL support provider profiles that intentionally send no authentication credentials.
|
||||
|
||||
#### Scenario: Provider auth type is none
|
||||
- **GIVEN** a provider profile uses no authentication
|
||||
- **WHEN** a provider request is prepared
|
||||
- **THEN** the system SHALL NOT add Authorization, API key header, or API key query parameters
|
||||
@@ -0,0 +1,29 @@
|
||||
## ADDED Requirements
|
||||
### Requirement: Discover Local Image Providers Without API Key
|
||||
The system SHALL allow a local image provider profile to discover models from an OpenAI-compatible `/v1/models` endpoint without requiring an API key.
|
||||
|
||||
#### Scenario: Local provider has no API key
|
||||
- **GIVEN** a provider profile is configured for a local OpenAI-compatible image service
|
||||
- **AND** the profile uses no authentication
|
||||
- **WHEN** the user discovers runtime models
|
||||
- **THEN** the system SHALL request `/v1/models` without an Authorization header
|
||||
- **AND** discovered image models SHALL be available for selection
|
||||
|
||||
### Requirement: Provide Local Image Provider Defaults
|
||||
The system SHALL provide a local image provider template with defaults suitable for OpenAI-compatible local image runtimes.
|
||||
|
||||
#### Scenario: User creates local image provider
|
||||
- **WHEN** the user adds a local image provider
|
||||
- **THEN** the profile SHALL default to `http://127.0.0.1:8080/v1`
|
||||
- **AND** use no authentication
|
||||
- **AND** enable image generation and model discovery capabilities
|
||||
- **AND** use OpenAI-compatible basic image compatibility
|
||||
|
||||
### Requirement: Surface Local Image Models In Model Center
|
||||
The system SHALL expose local image model assets in Model Center with install state and live service information.
|
||||
|
||||
#### Scenario: User views image models
|
||||
- **WHEN** the user opens Model Center
|
||||
- **THEN** official local image model entries SHALL be available under an image category
|
||||
- **AND** each entry SHALL show license, recommended runtime, model ID, and provider base URL where available
|
||||
- **AND** installed image models SHALL be matched against the local `/v1/models` response to indicate whether the model is loaded by the running service
|
||||
Reference in New Issue
Block a user