소스 검색

chore: remove useless code (#8198)

crazywoola 7 달 전
부모
커밋
4d2cd6703b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api/core/model_runtime/model_providers/azure_openai/llm/llm.py

+ 1 - 1
api/core/model_runtime/model_providers/azure_openai/llm/llm.py

@@ -420,7 +420,7 @@ class AzureOpenAILargeLanguageModel(_CommonAzureOpenAI, LargeLanguageModel):
                 ),
             )
 
-            index += 0
+            index += 1
 
         # calculate num tokens
         prompt_tokens = self._num_tokens_from_messages(credentials, prompt_messages, tools)