Skip to content

Commit

Permalink
🎨 #17 レートリミットが厳しくなりビデオ画像を送信出来なくなったので一時的に無効化
Browse files Browse the repository at this point in the history
  • Loading branch information
keitakn committed Jan 15, 2025
1 parent 1753547 commit 28af460
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions frontend/src/app/_components/Camera.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Alert } from '@nextui-org/react';
import React, { useEffect, useRef, useState } from 'react';
import { useVideoDeviceList } from './_hooks/useVideoDeviceList';

Expand Down Expand Up @@ -75,6 +76,7 @@ export function Camera({ onStreamChange, videoRef }: Props) {

return (
<div>
<Alert color="warning" title="ビデオ画像送信に問題が発生しています" description="現在AI Assistantはカメラの画像を認識出来ません" />
<video
ref={actualVideoRef}
autoPlay
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/app/_components/InputPromptForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,18 +294,14 @@ export function InputPromptForm() {
String.fromCharCode(...new Uint8Array(event.data.data.int16arrayBuffer)),
);

if (webSocketRef.current && base64CurrentFrame.current) {
if (webSocketRef.current) {
const payload = {
realtime_input: {
media_chunks: [
{
mime_type: 'audio/pcm',
data: base64,
},
{
mime_type: 'image/jpeg',
data: base64CurrentFrame.current,
},
],
},
};
Expand Down

0 comments on commit 28af460

Please sign in to comment.