Skip to content

Commit c8b799d

Browse files
committed
fix: tooltip join
1 parent 7262af0 commit c8b799d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"@yunlefun/utils": "0.1.2-beta.4",
3737
"consola": "^3.2.3",
3838
"copy-image-clipboard": "^2.1.2",
39-
"eslint-plugin-format": "^0.1.0",
4039
"eslint": "npm:eslint-ts-patch@^8.56.0-0",
40+
"eslint-plugin-format": "^0.1.0",
4141
"eslint-ts-patch": "^8.56.0-0",
4242
"html-to-image": "^1.11.11",
4343
"nuxt": "^3.10.1",

packages/ai/src/api.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export async function getCouplets(prompt: string) {
4444
const messages: OpenAI.ChatCompletionMessageParam[] = [
4545
{
4646
role: 'system',
47-
content: tooltip.join('\n'),
48-
}
47+
content: tooltip,
48+
},
4949
]
5050

5151
if (prompt)

packages/ai/src/config.ts

+3
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ export const baseModel = process.env.MODEL_NAME || 'deepseek-chat'
1515

1616
export const baseChatCompletionCreateParams: Partial<OpenAI.ChatCompletionCreateParamsNonStreaming> = {
1717
max_tokens: 100,
18+
// TODO: for use control
19+
// presence_penalty: 0,
20+
// frequency_penalty: 0,
1821
// stream: true
1922
}

0 commit comments

Comments
 (0)