- at 4:55 uses github action that analyse commits and creates versions
- github.com/EddieHubCommunity/LinkFree/blob/main/.github/workflows/release.yml
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
""" | |
Requires the following environment variables (you can use it as .env_template): | |
COMPLETION_DEPLOYMENT_NAME= | |
EMBEDDING_DEPLOYMENT_NAME= | |
AZURE_OPENAI_API_KEY= | |
AZURE_OPENAI_ENDPOINT= | |
AZURE_OPENAI_API_VERSION= | |
""" |
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
"""Smoke test for the Azure OpenAI model from langchain_openai. | |
Check if the API is working as expected and all the required environment variables are set. | |
Requires the following environment variables (you can use it as .env_template): | |
AZURE_OPENAI_API_KEY= | |
AZURE_OPENAI_API_VERSION= | |
AZURE_OPENAI_ENDPOINT= | |
COMPLETION_DEPLOYMENT_NAME= | |
""" |
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
"""Smoke test for Azure OpenAI API. | |
Check if the API is working as expected and all the required environment variables are set. | |
Requires the following environment variables (you can use it as .env_template): | |
AZURE_OPENAI_API_KEY= | |
AZURE_OPENAI_API_VERSION= | |
AZURE_OPENAI_ENDPOINT= | |
COMPLETION_DEPLOYMENT_NAME= | |
""" |
GitHub action that support versioning for mono repo
There is video explaining howto use it. GitHub action starts at 7min14
https://youtu.be/tTaIXej35rU?si=Cb_GRDeBteOAR-UQ&t=434
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
--- | |
title: 'Exploratory analysis' | |
author: 'Krystian Safjan' | |
date: '2024-01-03' | |
execute: | |
echo: false | |
format: | |
html: | |
toc: true | |
toc-depth: 5 |
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
exclude = [ | |
".tox", | |
".git", | |
"docs", | |
"venv", | |
".venv", | |
"*.pyc", | |
".git", | |
"__pycache__", | |
] |
Script that display information about branches including branch description, sorted by most recently modified branch.
NOTE: to add or edit git branch description use:
git branch --edit-description
(orgit branch develop --edit-description
for specific branch - in this casedevelop
branch)
Script inspierd by demo during the FOSDEM talk: https://youtu.be/aolI_Rz0ZqY?si=3nbEf8m2sKZDJRQU&t=468
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
import os | |
import openai | |
from dotenv import find_dotenv | |
from dotenv import load_dotenv | |
def configure_openai(): | |
# Configure OpenAI using load dotenv and find .env file | |
env_file = find_dotenv() |