fix app-expo code file format
This commit is contained in:
@@ -67,14 +67,11 @@ export async function buildAvatarUploadFormData(
|
||||
return form;
|
||||
}
|
||||
|
||||
form.append(
|
||||
'file',
|
||||
{
|
||||
uri,
|
||||
name: filename,
|
||||
type: mime,
|
||||
} as unknown as Blob,
|
||||
);
|
||||
form.append('file', {
|
||||
uri,
|
||||
name: filename,
|
||||
type: mime,
|
||||
} as unknown as Blob);
|
||||
|
||||
return form;
|
||||
}
|
||||
|
||||
@@ -188,8 +188,7 @@ export function useUpdateNickname() {
|
||||
const queryClient = useQueryClient();
|
||||
|
||||
return useMutation({
|
||||
mutationFn: (body: UpdateNicknameRequest) =>
|
||||
authApi.updateNickname(body),
|
||||
mutationFn: (body: UpdateNicknameRequest) => authApi.updateNickname(body),
|
||||
onSuccess: (user) => syncSessionAndProfileQueries(queryClient, user),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -143,10 +143,7 @@ export class RealtimeSession {
|
||||
}
|
||||
|
||||
/** Returns true if the message was sent over the socket. */
|
||||
sendText(
|
||||
text: string,
|
||||
options?: { ttsThisTurn?: boolean },
|
||||
): boolean {
|
||||
sendText(text: string, options?: { ttsThisTurn?: boolean }): boolean {
|
||||
const tts = !!options?.ttsThisTurn;
|
||||
this.assistantTurnTtsSync = tts;
|
||||
return this.client.sendText(text, { ttsThisTurn: tts });
|
||||
@@ -249,7 +246,10 @@ export class RealtimeSession {
|
||||
};
|
||||
if (this.assistantTurnTtsSync && !payload.manual) {
|
||||
const idx = event.index ?? 0;
|
||||
const key = RealtimeSession.bufferedTtsKey(event.assistantMessageId, idx);
|
||||
const key = RealtimeSession.bufferedTtsKey(
|
||||
event.assistantMessageId,
|
||||
idx,
|
||||
);
|
||||
this.pendingTtsByKey.set(key, payload);
|
||||
} else {
|
||||
this.onTtsSegment?.(payload);
|
||||
|
||||
Reference in New Issue
Block a user