Skip to content

Commit

Permalink
Update hydeExample.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh4902 authored Sep 25, 2023
1 parent 9d9e2a2 commit 387d4f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions JS/edgechains/examples/src/hydeExample/hydeExample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { createConnection,getManager } from 'typeorm';

const gpt3endpoint = {
url: "https://api.openai.com/v1/chat/completions",
apikey : "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",
orgId : "org-ha7bPSLcoUnYzUMZ5xAogTgo",
apikey : "",
orgId : "",
model : "gpt-3.5-turbo",
role : "user",
temprature : 0.7
Expand Down Expand Up @@ -163,7 +163,7 @@ async function gptFnChat(chatMessages,arkRequest) {
'temperature' : gpt3endpoint.temprature
},{
headers : {
Authorization : 'Bearer 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' ,
Authorization : 'Bearer ' + gpt3Endpoint.apikey ,
'content-type' : 'application/json'
}
})
Expand All @@ -190,7 +190,7 @@ async function embeddings(resp : string, arkRequest): Promise<Number[]> {
"input" : resp
},{
headers : {
Authorization : 'Bearer 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' ,
Authorization : 'Bearer ' + gpt3Endpoint.apikey ,
'content-type' : 'application/json'
}
})
Expand Down Expand Up @@ -256,4 +256,4 @@ async function dbQuery(wordEmbeddings, metric, topK, probes,tableName,namespace:
console.error(error);
throw error;
}
}
}

0 comments on commit 387d4f0

Please sign in to comment.