mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
AudioRef: placeholder CGR
This commit is contained in:
@@ -137,6 +137,11 @@ export async function aixCGR_ChatSequence_FromDMessagesOrThrow(
|
||||
uMsg.parts.push(uFragment.part);
|
||||
break;
|
||||
|
||||
case 'audio_ref':
|
||||
// Note: unsupported for now (shall await for the audio blob to upload it as inline audio for the model)
|
||||
console.warn('aixCGR_FromDMessages: audio_ref part from User not implemented yet');
|
||||
break;
|
||||
|
||||
case 'image_ref':
|
||||
// note, we don't resize, as the user image is resized following the user's preferences
|
||||
try {
|
||||
@@ -210,8 +215,7 @@ export async function aixCGR_ChatSequence_FromDMessagesOrThrow(
|
||||
break;
|
||||
|
||||
case 'doc':
|
||||
// TODO
|
||||
console.warn('aixCGR_FromDMessages: doc part from Assistant not implemented yet');
|
||||
console.warn('aixCGR_FromDMessages: doc part from Assistant not possible');
|
||||
// mMsg.parts.push(aFragment.part);
|
||||
break;
|
||||
|
||||
@@ -220,6 +224,11 @@ export async function aixCGR_ChatSequence_FromDMessagesOrThrow(
|
||||
modelMessage.parts.push({ pt: 'text', text: `[ERROR] ${aFragment.part.error}` });
|
||||
break;
|
||||
|
||||
case 'audio_ref':
|
||||
// Note: unsupported for now (shall await for the audio blob to upload it as inline audio for the model)
|
||||
console.warn('aixCGR_FromDMessages: audio_ref part from Assistant not implemented yet');
|
||||
break;
|
||||
|
||||
case 'image_ref':
|
||||
// TODO: rescale shall be dependent on the LLM here - and be careful with the high-res options, as they can
|
||||
// be really space consuming. how to choose between high and low? global option?
|
||||
|
||||
Reference in New Issue
Block a user