Add preview AI debugging
This commit is contained in:
parent
9213c3117e
commit
2f7f414397
@ -61,7 +61,7 @@ export default function useAiImageQueries(
|
||||
const request = useCallback(async (
|
||||
fields = ALL_AI_AUTO_GENERATED_FIELDS,
|
||||
) => {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
console.log('RUNNING AI QUERIES', fields);
|
||||
}
|
||||
hasRunAllQueriesOnce.current = true;
|
||||
|
||||
@ -12,6 +12,7 @@ export default function useAiImageQuery(
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
|
||||
const request = useCallback(async () => {
|
||||
console.log('useAiImageQuery', imageBase64?.slice(0, 48), query);
|
||||
if (imageBase64) {
|
||||
setIsLoading(true);
|
||||
setText('');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user