-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from Azure-Samples/githubmodels
Add support for Github models, stop copying to .env
- Loading branch information
Showing
9 changed files
with
136 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
# The .env file should be auto-generated by `azd up` - | ||
# see README for more detailed instructions. | ||
AZURE_OPENAI_ENDPOINT= | ||
# Can be "azure", "github", or "local" | ||
OPENAI_HOST="azure" | ||
|
||
# For Azure host: | ||
AZURE_OPENAI_API_VERSION="2024-02-15-preview" | ||
AZURE_OPENAI_ENDPOINT="https://YOUR-ENDPOINT-HERE.openai.azure.com/" | ||
# Name of the Azure OpenAI GPT deployment (different from the model name) | ||
AZURE_OPENAI_CHATGPT_DEPLOYMENT=chatgpt | ||
# This only needs to be specified when using the key instead of DefaultCredentials | ||
AZURE_OPENAI_KEY= | ||
# Name of the Azure OpenAI GPT deployment (different from the model name) | ||
AZURE_OPENAI_CHATGPT_DEPLOYMENT= | ||
# Azure OpenAI API version | ||
AZURE_OPENAI_API_VERSION="2024-02-15-preview" | ||
|
||
# For GitHub models: | ||
GITHUB_MODELS_ENDPOINT="https://models.inference.ai.azure.com" | ||
GITHUB_MODELS_NAME="gpt-4o" | ||
|
||
# For local models, like Ollama/llamafile: | ||
LOCAL_MODELS_ENDPOINT="http://localhost:11434/v1" | ||
LOCAL_MODELS_NAME="llama3.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters