You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moonbox3
changed the title
AttributeError: 'Kernel' object has no attribute 'get_prompt_execution_settings_from_service'
Python: AttributeError: 'Kernel' object has no attribute 'get_prompt_execution_settings_from_service'
Mar 13, 2024
@Sarfaraz021, as mentioned in the error message, you'll want to use kernel.get_prompt_execution_settings_from_service_id(service_id) or kernel.get_service(service_id).instantiate_prompt_execution_settings(service_id=service_id) which is what is done by calling kernel.get_prompt_execution_settings_from_service_id(service_id).
Code:
settings = kernel.get_prompt_execution_settings_from_service(
ChatCompletionClientBase, "chat-gpt")
Error:
The text was updated successfully, but these errors were encountered: