fix(models): tighten audio capability + correct openai oauth content
This commit is contained in:
@@ -96,9 +96,10 @@ export class OpenAIClient implements ModelClient {
|
||||
.map((m) => {
|
||||
const text = getMessageTextWithTools(m);
|
||||
if (!text) {return null;}
|
||||
const contentType = m.role === 'assistant' ? 'output_text' : 'input_text';
|
||||
return {
|
||||
role: m.role,
|
||||
content: [{ type: 'input_text', text }],
|
||||
content: [{ type: contentType, text }],
|
||||
};
|
||||
})
|
||||
.filter((x): x is NonNullable<typeof x> => Boolean(x));
|
||||
|
||||
Reference in New Issue
Block a user