mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #385] [MERGED] Fixes get_num_tokens function to return []int instead of int #1336
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/385
Author: @snicholas
Created: 3/5/2025
Status: ✅ Merged
Merged: 3/5/2025
Merged by: @crazywoola
Base:
main← Head:Issue-384-azure-openai-text-embedding-fix📝 Commits (2)
cef0673Fixes get_num_tokens function to return []int instead of int9e3bc0abump: version📊 Changes
2 files changed (+7 additions, -6 deletions)
View changed files
📝
models/azure_openai/manifest.yaml(+1 -1)📝
models/azure_openai/models/text_embedding/text_embedding.py(+6 -5)📄 Description
Modifies the get_num_tokens function in text_embedding model to return the correct data type
Fix https://github.com/langgenius/dify/issues/14656
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.