Skip to content

Commit

Permalink
add more libs to catalog (#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
aantipov committed Jul 25, 2023
1 parent 957cfdc commit 16f4291
Show file tree
Hide file tree
Showing 3 changed files with 324 additions and 8 deletions.
8 changes: 4 additions & 4 deletions functions-helpers/setPackageAiInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export async function setPkgAIInfo(
model,
messages: getMessages(pkgName),
max_tokens: 900,
temperature: 0.1,
temperature: 0,
});

if (!response.ok) {
Expand Down Expand Up @@ -169,7 +169,7 @@ function getMessages(pkgName: string): ChatCompletionRequestMessage[] {
},
{
role: 'user',
content: 'Provide information about vue npm package',
content: `Provide information about 'vue' npm package`,
},
{
role: 'assistant',
Expand Down Expand Up @@ -197,7 +197,7 @@ function getMessages(pkgName: string): ChatCompletionRequestMessage[] {
},
{
role: 'user',
content: `Provide information about some-non-existing-package npm package`,
content: `Provide information about 'some-non-existing-package' npm package`,
},
{
role: 'assistant',
Expand All @@ -209,7 +209,7 @@ function getMessages(pkgName: string): ChatCompletionRequestMessage[] {
},
{
role: 'user',
content: `Provide information about moment npm package`,
content: `Provide information about 'moment' npm package`,
},
{
role: 'assistant',
Expand Down

0 comments on commit 16f4291

Please sign in to comment.