|
@@ -2,7 +2,7 @@ import type { OpenAI } from 'openai';
|
|
|
|
|
|
|
|
import { openaiClient } from './client';
|
|
import { openaiClient } from './client';
|
|
|
|
|
|
|
|
-export const embed = async(username: string, input: string): Promise<OpenAI.Embedding[]> => {
|
|
|
|
|
|
|
+export const embed = async(input: string, username?: string): Promise<OpenAI.Embedding[]> => {
|
|
|
const result = await openaiClient.embeddings.create({
|
|
const result = await openaiClient.embeddings.create({
|
|
|
input,
|
|
input,
|
|
|
model: 'text-embedding-3-large',
|
|
model: 'text-embedding-3-large',
|