AttributeError: 'str' object has no attribute 'get_token' in Python when using Azure Cognitive Search Vector Search
I am trying to do a Vector Search with Azure Cognitive Search in Python. This is my code: query = "What are the advantages of an open-source ai model?" search_client = SearchClient(AZURE_COGNITIVE_SEARCH_SERVICE_ENDPOINT, AZURE_COGNITIVE_SEARCH_INDEX_NAME, credential=AZURE_COGNITIVE_SEARCH_API_KEY) vector_query = VectorizableTextQuery(text=query, k=3, fields="content_vector") results…