Compare commits
2 Commits
url
...
836ea90145
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
836ea90145 | ||
|
|
a040b7a16a |
@@ -642,7 +642,7 @@ public class AiGateWayManager : DomainService
|
||||
isFirst = false;
|
||||
}
|
||||
|
||||
if (responseResult.Item1=="exception")
|
||||
if (responseResult.Item1.Contains("exception"))
|
||||
{
|
||||
//兼容部分ai工具问题
|
||||
continue;
|
||||
|
||||
@@ -133,8 +133,9 @@ export function toClaudeFormat(messages: UnifiedMessage[]): { messages: ClaudeMe
|
||||
for (const msg of messages) {
|
||||
// Claude 的 system 消息需要单独提取
|
||||
if (msg.role === 'system') {
|
||||
systemPrompt = typeof msg.content === 'string' ? msg.content : msg.content.map(c => c.text || '').join('');
|
||||
continue;
|
||||
msg.role = 'assistant';
|
||||
// systemPrompt = typeof msg.content === 'string' ? msg.content : msg.content.map(c => c.text || '').join('');
|
||||
// continue;
|
||||
}
|
||||
|
||||
const role = msg.role === 'model' ? 'assistant' : msg.role;
|
||||
|
||||
Reference in New Issue
Block a user