Skip to content

Commit

Permalink
remove unnecessary sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
sorphwer committed Oct 29, 2024
1 parent b0c9039 commit 898c02a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions livekit-plugins/livekit-plugins-dify/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changelog

- v0.3.0
Remove sleep to speed up the response

- v0.2.0
Fix bug

Expand Down
3 changes: 2 additions & 1 deletion livekit-plugins/livekit-plugins-dify/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# LiveKit Plugins Dify

To use:
LLM inference implemention from Dify API

Usage:
```
agent = VoicePipelineAgent(
vad=ctx.proc.userdata["vad"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def __anext__(self):
async for chunk in self._dify_stream.aiter_lines():

if not chunk.strip():
await asyncio.sleep(0.1)
# await asyncio.sleep(0.1) #remove this sleep after testing.
continue

# print(f"Received chunk: {chunk.strip()}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "0.2.0"
__version__ = "0.3.0"

0 comments on commit 898c02a

Please sign in to comment.