Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'semantic_kernel' has no attribute 'openai_settings_from_dot_env' #200

Open
ContestantsD opened this issue Jun 17, 2024 · 0 comments

Comments

@ContestantsD
Copy link

Describe the bug
Traceback (most recent call last):
File "/root/autodl-tmp/muzic-main/musicagent/agent.py", line 351, in
agent = MusicAgent(args.config, mode="cli")
File "/root/autodl-tmp/muzic-main/musicagent/agent.py", line 44, in init
self._init_backend_from_env()
File "/root/autodl-tmp/muzic-main/musicagent/agent.py", line 103, in _init_backend_from_env
api_key, org_id = sk.openai_settings_from_dot_env()
AttributeError: module 'semantic_kernel' has no attribute 'openai_settings_from_dot_env'

To Reproduce
Steps to reproduce the behavior:

import semantic_kernel as sk # the version is 1.1.1
api_key, org_id = sk.openai_settings_from_dot_env()
report the error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant