Skip to content

Commit

Permalink
feat: use anthropic-version 2023-01-01 for better effect
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsang4 committed Aug 23, 2023
1 parent 862efd2 commit 42452cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function buildHeader(apiKey) {
"Accept": "application/json",
"Content-Type": "application/json",
"x-api-key": apiKey,
"anthropic-version": "2023-06-01",
"anthropic-version": "2023-01-01",
};
}

Expand Down Expand Up @@ -127,7 +127,7 @@ function handleResponse(query, targetText, responseObj) {
});
return resultText;
}
resultText = targetText + currentResponse['completion'];
resultText = currentResponse['completion'];
query.onStream({
result: {
from: query.detectFrom,
Expand Down

0 comments on commit 42452cb

Please sign in to comment.