psychedelicious
6a2e35f2c4
feat(nodes): store original field annotation & FieldInfo in invocations
2025-05-14 06:55:15 +10:00
psychedelicious
b6d58774f4
feat(nodes): improved error messages for invalid defaults
2025-05-14 06:55:15 +10:00
psychedelicious
758f94d3c6
chore(ui): typegen
2025-05-14 06:55:15 +10:00
psychedelicious
9df0871754
fix(nodes): do not provide invalid defaults for batch nodes
2025-05-14 06:55:15 +10:00
psychedelicious
3011150a3a
feat(nodes): validate default values for all fields
...
This prevents issues where the node is defined with an invalid default value, which would guarantee an error during a ser/de roundtrip.
- Upstream issue requesting this functionality be built-in to pydantic: https://github.com/pydantic/pydantic/issues/8722
- Upstream PR that implements the functionality: https://github.com/pydantic/pydantic-core/pull/1593
2025-05-14 06:55:15 +10:00
psychedelicious
05aa1fce71
chore(ui): typegen
2025-05-14 06:55:15 +10:00
psychedelicious
df81f3274a
feat(nodes): improved pydantic type annotation massaging
...
When we do our field type overrides to allow invocations to be instantiated without all required fields, we were not modifying the annotation of the field but did set the default value of the field to `None`.
This results in an error when doing a ser/de round trip. Here's what we end up doing:
```py
from pydantic import BaseModel, Field
class MyModel(BaseModel):
foo: str = Field(default=None)
```
And here is a simple round-trip, which should not error but which does:
```py
MyModel(**MyModel().model_dump())
# ValidationError: 1 validation error for MyModel
# foo
# Input should be a valid string [type=string_type, input_value=None, input_type=NoneType]
# For further information visit https://errors.pydantic.dev/2.11/v/string_type
```
To fix this, we now check every incoming field and update its annotation to match its default value. In other words, when we override the default field value to `None`, we make its type annotation `<original type> | None`.
This prevents the error during deserialization.
This slightly alters the schema for all invocations and outputs - the values of all fields without default values are now typed as `<original type> | None`, reflecting the overrides.
This means the autogenerated types for fields have also changed for fields without defaults:
```ts
// Old
image?: components["schemas"]["ImageField"];
// New
image?: components["schemas"]["ImageField"] | null;
```
This does not break anything on the frontend.
2025-05-14 06:55:15 +10:00
psychedelicious
143487a492
chore: bump version to v5.11.0
v5.11.0
2025-05-13 14:04:45 +10:00
psychedelicious
203fa04295
feat(nodes): support bottleneck flag for nodes
2025-05-13 11:56:40 +10:00
Mary Hipp Rogers
954fce3c67
feat(ui): custom error toast support ( #8001 )
...
* support for custom error toast components, starting with usage limit
* add support for all usage limits
---------
Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local >
2025-05-08 15:53:10 -04:00
Mary Hipp
821889148a
easier way to override Whats New
2025-05-07 15:40:21 -04:00
Mary Hipp
4c248d8c2c
refetch queue list on mount
2025-05-07 15:37:55 -04:00
Mary Hipp
deb75805d4
use the max for iterations passed in
2025-05-06 18:26:40 -04:00
Mary Hipp Rogers
93110654da
Change feature to disable apiModels to chatGPT4oModels only ( #7996 )
...
* display credit column in queue list if shouldShowCredits is true
* change apiModels feature to chatGPT4oModels feature
* empty
---------
Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local >
2025-05-06 14:37:03 -04:00
psychedelicious
ff0c48d532
chore(ui): prettier
2025-05-06 09:07:52 -04:00
psychedelicious
de18073814
feat(ui): support imagen3/chatgpt-4o models in canvas
2025-05-06 09:07:52 -04:00
psychedelicious
0708af9545
feat(ui): support imagen3/chatgpt-4o models in workflow editor
2025-05-06 09:07:52 -04:00
psychedelicious
1e85184c62
feat(nodes): add imagen3/chatgpt-4o field types
2025-05-06 09:07:52 -04:00
psychedelicious
11d3b8d944
feat(ui): add usage info to model picker
2025-05-06 09:07:52 -04:00
psychedelicious
bffd4afb96
chore(ui): typegen
2025-05-06 09:07:52 -04:00
psychedelicious
518a896521
feat(mm): add usage_info to model config
2025-05-06 09:07:52 -04:00
psychedelicious
2647ff141a
feat(ui): add basic metadata to imagen3/chatgpt-4o graphs
2025-05-06 09:07:52 -04:00
Mary Hipp Rogers
ba0bac2aa5
add credits to queue item status changed ( #7993 )
...
* display credit column in queue list if shouldShowCredits is true
* add credits when queue item status changes
* chore(ui): typegen
---------
Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local >
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com >
2025-05-06 08:54:44 -04:00
psychedelicious
862e2a3e49
chore(ui): typegen
2025-05-05 16:09:13 -04:00
Mary Hipp
d22fd32b05
typegen
2025-05-05 16:09:13 -04:00
Mary Hipp
391e5b7f8c
update schema
2025-05-05 16:09:13 -04:00
Mary Hipp
c9d2a5f59a
display credit column in queue list if shouldShowCredits is true
2025-05-05 16:09:13 -04:00
Kent Keirsey
1f63b60021
Implementing support for Non-Standard LoRA Format ( #7985 )
...
* integrate loRA
* idk anymore tbh
* enable fused matrix for quantized models
* integrate loRA
* idk anymore tbh
* enable fused matrix for quantized models
* ruff fix
---------
Co-authored-by: Sam <bhaskarmdutt@gmail.com >
Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com >
v5.11.0rc2
2025-05-05 09:40:38 -04:00
psychedelicious
a499b9f54e
chore: bump version to v5.11.0rc2
2025-05-05 23:32:27 +10:00
psychedelicious
104505ea02
chore(ui): lint
2025-05-05 23:25:29 +10:00
psychedelicious
ee4002607c
feat(ui): add UI to reset hf token
2025-05-05 23:25:29 +10:00
psychedelicious
fd20582cdd
chore(ui): typegen
2025-05-05 23:25:29 +10:00
psychedelicious
43b0d07517
feat(api): add route to reset hf token
2025-05-05 23:25:29 +10:00
blessedcoolant
f83592a052
fix: deprecation warning in get_iso_timestemp
2025-05-05 11:45:30 +10:00
Mary Hipp
b3ee906749
add prompt validation to imagen3 graph
2025-05-01 13:02:13 -04:00
psychedelicious
5d69e9068a
feat(ui): add ability to globally disable hotkeys
...
This will both hide the hotkey from the hotkey modal and override any other enabled status it has.
2025-05-01 10:50:34 -04:00
psychedelicious
a79136b058
fix(ui): always add selectModelsTab hotkey data to prevent unhandled exception while registering the hotkey handler
2025-05-01 10:50:34 -04:00
psychedelicious
944af4d4a9
feat(ui): show unsupported gen mode toasts as warnings intead of errors
2025-05-01 23:25:01 +10:00
psychedelicious
5e001be73a
tidy(ui): remove excessive nav to mm buttons
2025-05-01 23:22:19 +10:00
psychedelicious
576a644b3a
tidy(ui): modelpicker component
2025-05-01 23:22:19 +10:00
psychedelicious
703557c8a6
feat(ui): cleanup
2025-05-01 23:22:19 +10:00
psychedelicious
d59a53b3f9
feat(ui): simplify picker types
2025-05-01 23:22:19 +10:00
psychedelicious
7b8f78c2d9
fix(ui): focus bug w/ popvoer
2025-05-01 23:22:19 +10:00
psychedelicious
31ab9be79a
feat(ui): iterate on picker
2025-05-01 23:22:19 +10:00
psychedelicious
5011fab85d
fix(ui): restore FLUX Dev info popover to main model picker
2025-05-01 10:59:51 +10:00
psychedelicious
92bdb9fdcc
chore(ui): remove unused exports
2025-05-01 10:59:51 +10:00
Mary Hipp
548e766c0b
feat(ui): ability to disable generating with API models
2025-05-01 10:59:51 +10:00
Mary Hipp
ff897f74a1
send the list of reference images reversed to chatGPT so it matches displayed order
2025-04-30 15:56:38 -04:00
psychedelicious
3d29c996ed
feat(ui): support img2img for chatgpt 4o w/ ref images
2025-04-30 13:39:05 +10:00
psychedelicious
42d57d1225
fix(ui): ref image layout
2025-04-30 13:39:05 +10:00