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
import os
from openai import OpenAI
client = OpenAI(
api_key=os.getenv("OPENAI_API_KEY")
)
... needs to be replaced with this code to use azure:
import os
from openai import AzureOpenAI
client = AzureOpenAI(
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
api_version=os.environ["AZURE_OPENAI_API_VERSION"],
azure_endpoint=os.getenv("AZURE_OPENAI_ENDPOINT")
)
Let's move the code in promt_azure function in src/bia_bob/endpoints/_azure.py to a new file src/bia_bob/endpoints/_github_models.py and name the function in there prompt_github_models. Afterwards, we can implement a new promt_azure function in src/bia_bob/endpoints/_azure.py, and add a new if-block in the generate_response in src/bia_bob/_utilities.py.
git-bob implement this and also note that this would close #236
Activity