Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release: 0.0.3 #4

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ jobs:
- name: Extract release notes
id: extract-release-notes
uses: ffurrer2/extract-release-notes@v1
- name: 'Create a GitHub release v${{ steps.package-version.outputs.current-version }}'
if: steps.npm-tag.outputs.tag == 'latest'
uses: ncipollo/release-action@v1
with:
tag: 'v${{ steps.package-version.outputs.current-version }}'
name: 'Release v${{ steps.package-version.outputs.current-version }}'
body: |
${{ steps.extract-release-notes.outputs.release_notes }}
# - name: 'Create a GitHub release v${{ steps.package-version.outputs.current-version }}'
# if: steps.npm-tag.outputs.tag == 'latest'
# uses: ncipollo/release-action@v1
# with:
# tag: 'v${{ steps.package-version.outputs.current-version }}'
# name: 'Release v${{ steps.package-version.outputs.current-version }}'
# body: |
# ${{ steps.extract-release-notes.outputs.release_notes }}
- run: npm ci
- run: npm publish --access public --tag ${{ steps.npm-tag.outputs.tag }}
env:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.0.3]() - 2024-09-16

### Changed
- Default chat Hook : send id as string


## [0.0.2]() - 2024-09-16

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@videodb/chat-vue",
"description": "Chat component for VideoDB",
"version": "0.0.2",
"version": "0.0.3",
"author": "VideoDB",
"license": "Apache-2.0",
"private": false,
Expand Down
22 changes: 11 additions & 11 deletions src/components/hooks/useVideoDBAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export function useVideoDBAgent(config) {
if (!lastMessage || !lastMessage.clientLoading) {
const loadingMsgId = Date.now() + 2;
conversations[convId][loadingMsgId] = {
conv_id: convId,
msg_id: loadingMsgId,
session_id: session.sessionId,
conv_id: String(convId),
msg_id: String(loadingMsgId),
session_id: String(session.sessionId),
type: 'output',
sender: 'assistant',
clientLoading: true
Expand All @@ -53,11 +53,11 @@ export function useVideoDBAgent(config) {
const _message = {
type: 'input',
sender: 'user',
conv_id: convId,
msg_id: msgId,
session_id: session.sessionId,
collection_id: session.collectionId,
video_id: session.videoId,
conv_id: String(convId),
msg_id: String(msgId),
session_id: String(session.sessionId),
collection_id: session.collectionId ? String(session.collectionId) : null,
video_id: session.videoId ? String(session.videoId) : null,
...message
};

Expand Down Expand Up @@ -87,9 +87,9 @@ export function useVideoDBAgent(config) {
}
});

const chatLoading = computed(() =>
Object.values(conversations).some(conv =>
Object.values(conv).some(content =>
const chatLoading = computed(() =>
Object.values(conversations).some(conv =>
Object.values(conv).some(content =>
content.status === "progress" || content.clientLoading
)
)
Expand Down
Loading