feat: Reply suggestion and summary generation using OpenAI (#7029)

Add `reply_suggestions` and `summary_generation` options for OpenAI integration

Fixes: https://linear.app/chatwoot/issue/CW-1595/frontend-for-generating-conversation-summary

Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
Muhsin Keloth
2023-05-10 17:50:37 +05:30
committed by GitHub
parent 55e5fa2205
commit 86384bf876
10 changed files with 169 additions and 68 deletions

View File

@@ -1,5 +1,5 @@
<template>
<span class="spinner" :class="size" />
<span class="spinner" :class="`${size} ${colorScheme}`" />
</template>
<script>
export default {
@@ -8,6 +8,10 @@ export default {
type: String,
default: 'small',
},
colorScheme: {
type: String,
default: '',
},
},
};
</script>
@@ -32,8 +36,8 @@ export default {
margin-top: -$space-one;
margin-left: -$space-one;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.7);
border-top-color: rgba(255, 255, 255, 0.2);
border: 2px solid rgba(255, 255, 255, 0.8);
border-top-color: rgba(255, 255, 255, 0.3);
animation: spinner 0.9s linear infinite;
}
}
@@ -84,5 +88,10 @@ export default {
margin-top: -$space-small + $space-micro;
}
}
&.dark::before {
border-color: rgba(0, 0, 0, 0.7);
border-top-color: rgba(0, 0, 0, 0.2);
}
}
</style>