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