We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6569b3d commit beb3d58Copy full SHA for beb3d58
samples/managed-llm/app/app.py
@@ -15,10 +15,10 @@
15
# Configure basic logging
16
logging.basicConfig(level=logging.INFO)
17
18
-default_openai_base_url = "https://api.openai.com/v1/chat/completions"
+default_openai_base_url = "https://api.openai.com/v1/"
19
20
# Set the environment variables for the chat model
21
-LLM_URL = os.getenv("LLM_URL", default_openai_base_url)
+LLM_URL = os.getenv("LLM_URL", default_openai_base_url) + "chat/completions"
22
# Fallback LLM Model if not set in environment
23
MODEL_ID = os.getenv("LLM_MODEL", "gpt-4-turbo")
24
0 commit comments