feat: support openai response api

This commit is contained in:
Acbox
2026-02-15 19:44:22 +08:00
parent 38753ef054
commit d97b4cb757
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@ export const createModel = (model: ModelConfig) => {
switch (model.clientType) {
case ClientType.OpenAI:
return createOpenAI({ apiKey, baseURL })(modelId)
case ClientType.OpenAICompat:
case ClientType.Ollama:
case ClientType.Dashscope: {
+1 -1
View File
@@ -44,7 +44,7 @@ export const extractAttachmentsFromText = (text: string): { cleanedText: string;
const paths: string[] = []
const cleanedText = text.replace(
/<attachments>([\s\S]*?)<\/attachments>/g,
(_match, inner: string) => {
(_match, inner: string) => {
paths.push(...parseAttachmentPaths(inner))
return ''
}