Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
dd352ab2
"git@developer.sourcefind.cn:OpenDAS/torchani.git" did not exist on "e2e740d0dbdf4a372a99491d89c630dd94a2b743"
Unverified
Commit
dd352ab2
authored
Dec 21, 2024
by
Patrick Devine
Committed by
GitHub
Dec 21, 2024
Browse files
fix crash bug with /save when quotes are used (#8208)
parent
d8bab8ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
cmd/interactive.go
cmd/interactive.go
+3
-0
No files found.
cmd/interactive.go
View file @
dd352ab2
...
@@ -485,6 +485,9 @@ func buildModelfile(opts runOptions) string {
...
@@ -485,6 +485,9 @@ func buildModelfile(opts runOptions) string {
}
}
for
_
,
msg
:=
range
opts
.
Messages
{
for
_
,
msg
:=
range
opts
.
Messages
{
if
strings
.
Contains
(
msg
.
Content
,
"
\"
"
)
{
msg
.
Content
=
`"""`
+
msg
.
Content
+
`"""`
}
f
.
Commands
=
append
(
f
.
Commands
,
parser
.
Command
{
Name
:
"message"
,
Args
:
fmt
.
Sprintf
(
"%s: %s"
,
msg
.
Role
,
msg
.
Content
)})
f
.
Commands
=
append
(
f
.
Commands
,
parser
.
Command
{
Name
:
"message"
,
Args
:
fmt
.
Sprintf
(
"%s: %s"
,
msg
.
Role
,
msg
.
Content
)})
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment