Merge branch 'main' of https://bitbucket.org/zlalani/ppt-tool
This commit is contained in:
commit
36ae0438a1
2 changed files with 5 additions and 2 deletions
|
|
@ -784,7 +784,7 @@ class LLMClient:
|
|||
message.model_dump()
|
||||
for message in self._get_anthropic_messages(messages)
|
||||
],
|
||||
max_tokens=max_tokens or 4000,
|
||||
max_tokens=max_tokens or 8000,
|
||||
tools=[
|
||||
{
|
||||
"name": "ResponseSchema",
|
||||
|
|
@ -793,6 +793,7 @@ class LLMClient:
|
|||
},
|
||||
*(tools or []),
|
||||
],
|
||||
tool_choice={"type": "tool", "name": "ResponseSchema"} if not tools else {"type": "any"},
|
||||
)
|
||||
tool_calls: List[AnthropicToolCall] = []
|
||||
for content in response.content:
|
||||
|
|
@ -1560,7 +1561,7 @@ class LLMClient:
|
|||
message.model_dump()
|
||||
for message in self._get_anthropic_messages(messages)
|
||||
],
|
||||
max_tokens=max_tokens or 4000,
|
||||
max_tokens=max_tokens or 8000,
|
||||
tools=[
|
||||
{
|
||||
"name": "ResponseSchema",
|
||||
|
|
@ -1569,6 +1570,7 @@ class LLMClient:
|
|||
},
|
||||
*(tools or []),
|
||||
],
|
||||
tool_choice={"type": "tool", "name": "ResponseSchema"} if not tools else {"type": "any"},
|
||||
) as stream:
|
||||
is_response_schema_tool_call_started = False
|
||||
async for event in stream:
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ export default function LoginPage() {
|
|||
});
|
||||
|
||||
if (response.ok) {
|
||||
await dispatch(fetchCurrentUser());
|
||||
router.push('/dashboard');
|
||||
} else {
|
||||
const data = await response.json();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue