-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
I just learned that this code:
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels