Skip to content

Commit

Permalink
fix: tooltip join
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Feb 9, 2024
1 parent 7262af0 commit c8b799d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"@yunlefun/utils": "0.1.2-beta.4",
"consola": "^3.2.3",
"copy-image-clipboard": "^2.1.2",
"eslint-plugin-format": "^0.1.0",
"eslint": "npm:eslint-ts-patch@^8.56.0-0",
"eslint-plugin-format": "^0.1.0",
"eslint-ts-patch": "^8.56.0-0",
"html-to-image": "^1.11.11",
"nuxt": "^3.10.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/ai/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export async function getCouplets(prompt: string) {
const messages: OpenAI.ChatCompletionMessageParam[] = [
{
role: 'system',
content: tooltip.join('\n'),
}
content: tooltip,
},
]

if (prompt)
Expand Down
3 changes: 3 additions & 0 deletions packages/ai/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ export const baseModel = process.env.MODEL_NAME || 'deepseek-chat'

export const baseChatCompletionCreateParams: Partial<OpenAI.ChatCompletionCreateParamsNonStreaming> = {
max_tokens: 100,
// TODO: for use control
// presence_penalty: 0,
// frequency_penalty: 0,
// stream: true
}

0 comments on commit c8b799d

Please sign in to comment.