From 4d2cd6703bb0842b322d2e5bd90a8ac9991d5234 Mon Sep 17 00:00:00 2001 From: crazywoola <100913391+crazywoola@users.noreply.github.com> Date: Wed, 11 Sep 2024 18:19:34 +0800 Subject: [PATCH] chore: remove useless code (#8198) --- api/core/model_runtime/model_providers/azure_openai/llm/llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/core/model_runtime/model_providers/azure_openai/llm/llm.py b/api/core/model_runtime/model_providers/azure_openai/llm/llm.py index 2ad2289869bbae..3b9fb52e24ec93 100644 --- a/api/core/model_runtime/model_providers/azure_openai/llm/llm.py +++ b/api/core/model_runtime/model_providers/azure_openai/llm/llm.py @@ -420,7 +420,7 @@ def _handle_chat_generate_stream_response( ), ) - index += 0 + index += 1 # calculate num tokens prompt_tokens = self._num_tokens_from_messages(credentials, prompt_messages, tools)