mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-19 19:11:35 +08:00
feat(core): improve byok editing (#15427)
fix #14287 fix #15359 fix #15424 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Redesigned workspace AI provider settings with connection testing, storage options, model selection, capability management, ordering, and custom endpoints. * AI chat model choices now adapt to the selected workspace and conversation route. * Added support for image-based AI requests. * **Bug Fixes** * Improved handling of unavailable or outdated model selections. * App configuration updates now reject overlapping paths and load deterministically. * **Tests** * Expanded coverage for provider models, AI chat scoping, image requests, and configuration validation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -398,13 +398,13 @@ export class CapabilityRuntime {
|
||||
_filter?: ProviderFilter,
|
||||
slot = 'image.generate'
|
||||
): AsyncIterableIterator<NativeImageArtifact> {
|
||||
const { quality, seed } = options;
|
||||
const { quality, seed, modelName, loras } = options;
|
||||
const result = (await this.execute(
|
||||
slot,
|
||||
buildLlmImageRequestFromMessages({
|
||||
model: 'route-selected',
|
||||
messages: preparePromptMessagesForNativeRequest(messages, true),
|
||||
options: { quality, seed },
|
||||
options: { quality, seed, modelName, loras },
|
||||
}),
|
||||
cond,
|
||||
options
|
||||
|
||||
Reference in New Issue
Block a user