Skip to content

Commit 95afee9

Browse files
authored
Merge pull request #56 from wenwei-lin/main
Fix: config.model doesn't change after changing the model provider and wrong links to Dashboard
2 parents 606832e + 306b062 commit 95afee9

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

src/lib/common/errors/error-500.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</h1>
1919
<h4 class="text-uppercase">Internal Server Error</h4>
2020
<div class="mt-5 text-center">
21-
<Link class="btn btn-primary" href="/dashboard">
21+
<Link class="btn btn-primary" href="page/dashboard">
2222
Back to Dashboard
2323
</Link>
2424
</div>

src/routes/(authentication)/recoverpw/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</div>
2828
<CardBody class="pt-0">
2929
<div>
30-
<Link href="/dashboard">
30+
<Link href="page/dashboard">
3131
<div class="avatar-md profile-user-wid mb-4">
3232
<span class="avatar-title rounded-circle bg-light">
3333
<img src={PUBLIC_LOGO_URL} alt="" class="rounded-circle" height="34" />
@@ -41,7 +41,7 @@
4141
Enter your Email and instructions will be sent to you!
4242
</Alert>
4343

44-
<Form class="form-horizontal" action="/dashboard">
44+
<Form class="form-horizontal" action="page/dashboard">
4545
<div class="mb-3">
4646
<Label for="useremail" class="form-label">Email</Label>
4747
<Input

src/routes/(authentication)/register/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
</div>
7777
<CardBody class="pt-0">
7878
<div>
79-
<Link href="/dashboard">
79+
<Link href="page/dashboard">
8080
<div class="avatar-md profile-user-wid mb-4">
8181
<span class="avatar-title rounded-circle bg-light">
8282
<img src={PUBLIC_LOGO_URL} alt="" class="rounded-circle" height="34" />

src/routes/VerticalLayout/Header.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<div class="d-flex">
4949
<!-- LOGO -->
5050
<div class="navbar-brand-box">
51-
<a href="/dashboard" class="logo logo-dark">
51+
<a href="page/dashboard" class="logo logo-dark">
5252
<span class="logo-sm">
5353
<img src={PUBLIC_LOGO_URL} alt="" height="25" />
5454
</span>
@@ -57,7 +57,7 @@
5757
</span>
5858
</a>
5959

60-
<a href="/dashboard" class="logo logo-light">
60+
<a href="page/dashboard" class="logo logo-light">
6161
<span class="logo-sm">
6262
<img src={PUBLIC_LOGO_URL} alt="" height="25" />
6363
</span>

src/routes/page/agent/[agentId]/agent-llm-config.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
async function handleProviderChanged(provider) {
2424
config.is_inherit = false;
2525
models = await getLlmProviderModels(provider);
26+
config.model = models[0]?.name;
2627
}
2728
</script>
2829
@@ -60,4 +61,4 @@
6061
</div>
6162
</div>
6263
</CardBody>
63-
</Card>
64+
</Card>

0 commit comments

Comments
 (0)