chore: image custom params

This commit is contained in:
jialin
2024-11-27 17:07:22 +08:00
parent ba76498acc
commit 230120fff5
19 changed files with 473 additions and 206 deletions
+4 -3
View File
@@ -107,16 +107,17 @@ export const generateMessages = (messageList: Omit<MessageItem, 'uid'>[]) => {
export const OpenAIViewCode = {
chat: {
api: 'chat/completions',
clientType: 'chat.completions',
clientType: 'chat.completions.create',
logcommand: 'choices[0].message.content'
},
embeddings: {
api: 'embeddings',
clientType: 'embeddings',
clientType: 'embedding.create',
logcommand: 'data[0].embedding'
},
images: {
api: 'images/generations',
clientType: 'images.generate'
clientType: 'images.generate',
logcommand: 'data[0].b64_json'
}
};