Skip to content

Commit

Permalink
Update prototype to GPT-4
Browse files Browse the repository at this point in the history
  • Loading branch information
bmquinn authored and mbklein committed Aug 31, 2023
1 parent 8715ad5 commit 72ac444
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/validate-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
contents: read
environment: test
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: aws-actions/setup-sam@v1
- name: sam fix https://github.com/aws/aws-sam-cli/issues/4527
run: $(dirname $(readlink $(which sam)))/pip install --force-reinstall "cryptography==38.0.4"
Expand Down
1 change: 0 additions & 1 deletion node/test/integration/oai.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ describe("Oai routes", () => {
expect(result.statusCode).to.eq(200);
expect(result).to.have.header("content-type", /application\/xml/);
const resultBody = convert.xml2js(result.body, xmlOpts);
console.log(resultBody["OAI-PMH"].ListIdentifiers.header);
expect(resultBody["OAI-PMH"].ListIdentifiers.header)
.to.be.an("object")
.to.have.keys(["identifier", "datestamp", "setSpec"]);
Expand Down
4 changes: 3 additions & 1 deletion python/src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ def openai_chat_client():
deployment = os.getenv("AZURE_OPENAI_LLM_DEPLOYMENT_ID")
key = os.getenv("AZURE_OPENAI_API_KEY")
resource = os.getenv("AZURE_OPENAI_RESOURCE_NAME")
version = "2023-07-01-preview"

return AzureChatOpenAI(deployment_name=deployment,
openai_api_key=key,
openai_api_base=f"https://{resource}.openai.azure.com/",
openai_api_version="2023-03-15-preview")
openai_api_version=version)



def weaviate_vector_store(index_name: str, text_key: str, attributes: List[str] = []):
Expand Down

0 comments on commit 72ac444

Please sign in to comment.