mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
DRY variable in useAIChat
This commit is contained in:
1 file changed
+1
-1
@@ -135,7 +135,7 @@ export function useAIChat({
|
||||
throw new Error('No response from AI');
|
||||
}
|
||||
|
||||
const responseMessage = completion.choices[0].message;
|
||||
const responseMessage = response.message;
|
||||
|
||||
// Add assistant message
|
||||
const assistantMessage: AIMessage = {
|
||||
|
||||
Reference in new issue
Block a user