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
Is that possible to implement a easy way to change constant.PF_SERVICE_HOST to another value?
Today if you change _constant.PF_SERVICE_HOST, it will be overwritten to 127.0.0.1 before the server starts.
The text was updated successfully, but these errors were encountered:
@engrogerio ,Thanks for reporting the issue.
May I double confirm the scenario you mentioned above is local prompt flow service (pf service start) or prompt flow serve (pf flow serve)? And may I ask how do you change the PF_SERVICE_HOST, do you modify the corresponding source code?
Btw, in what scenarios do you need to change the host value?
@trace
def chat(question: str = "What's the capital of France?") -> str:
"""Flow entry function."""
if "OPENAI_API_KEY" not in os.environ and "AZURE_OPENAI_API_KEY" not in os.environ:
# load environment variables from .env file
load_dotenv()
prompty = Prompty.load(source=BASE_DIR / "chat.prompty")
# trigger a llm call with the prompty obj
output = prompty(question=question)
return output
Hi, @engrogerio , you may need change your code to constants_file_path = os.path.abspath(promptflow._sdk._constants.__file__) if you want to change PF_SERVICE_HOST in the source code. Btw, we will support config host in the future.
I can not serve to host 0.0.0.0.
Is that possible to implement a easy way to change constant.PF_SERVICE_HOST to another value?
Today if you change _constant.PF_SERVICE_HOST, it will be overwritten to 127.0.0.1 before the server starts.
The text was updated successfully, but these errors were encountered: