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 ff2c4b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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 ff2c4b6

Please sign in to comment.