Fix openai extension script.py - TypeError: '_Environ' object is not callable (#1753)
This commit is contained in:
parent
f54256e348
commit
4883e20fa7
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ from modules import shared
|
||||||
from modules.text_generation import encode, generate_reply
|
from modules.text_generation import encode, generate_reply
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
'port': int(os.environ('OPENEDAI_PORT')) if 'OPENEDAI_PORT' in os.environ else 5001,
|
'port': int(os.environ.get('OPENEDAI_PORT')) if 'OPENEDAI_PORT' in os.environ else 5001,
|
||||||
}
|
}
|
||||||
|
|
||||||
debug = True if 'OPENEDAI_DEBUG' in os.environ else False
|
debug = True if 'OPENEDAI_DEBUG' in os.environ else False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue