Skip to content

Commit

Permalink
🐛 fix: Azure OpenAI vision models issue (lobehub#2207)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnoyiX committed May 10, 2024
1 parent 62e1e5c commit 2e71044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/agent-runtime/azureOpenai/index.ts
Expand Up @@ -102,6 +102,6 @@ export class LobeAzureOpenAI implements LobeRuntimeAI {
private tocamelCase = (str: string) => {
return str
.toLowerCase()
.replace(/([_][a-z])/g, (group) => group.toUpperCase().replace("_", ""));
.replace(/(_[a-z])/g, (group) => group.toUpperCase().replace("_", ""));
}
}

0 comments on commit 2e71044

Please sign in to comment.