Skip to content

Commit e560ac1

Browse files
authored
Merge pull request #4 from mutablelogic/dev
Updated small errors
2 parents de4bbfc + 0c1c6d1 commit e560ac1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ docker run ghcr.io/mutablelogic/go-llm:latest --help
2424
# Interact with Claude to retrieve news headlines, assuming
2525
# you have an API key for Anthropic and NewsAPI
2626
docker run \
27-
--interactive -e MISTRAL_API_KEY -e NEWSAPI_KEY \
27+
-e OLLAMA_URL -e MISTRAL_API_KEY -e NEWSAPI_KEY \
2828
ghcr.io/mutablelogic/go-llm:latest \
29-
chat claude-3-5-haiku-20241022 --prompt "What is the latest news?"
29+
chat mistral-small-latest --prompt "What is the latest news?" --no-stream
3030
```
3131

32-
See below for more information on how to use the command-line tool (or how to install it
33-
if you have a `go` compiler).
32+
See below for more information on how to use the command-line tool (or how to
33+
install it if you have a `go` compiler).
3434

3535
## Programmatic Usage
3636

@@ -250,7 +250,7 @@ Run "llm <command> --help" for more information on a command.
250250

251251
## Contributing & Distribution
252252

253-
*This module is currently in development and subject to change*. Please do file
253+
_This module is currently in development and subject to change_. Please do file
254254
feature requests and bugs [here](https://github.com/mutablelogic/go-llm/issues).
255255
The [license is Apache 2](LICENSE) so feel free to redistribute. Redistributions in either source
256256
code or binary form must reproduce the copyright notice, and please link back to this

pkg/mistral/chat_completion_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func Test_chat_002(t *testing.T) {
128128
}
129129
})
130130
t.Run("PresencePenalty", func(t *testing.T) {
131-
r, err := client.ChatCompletion(context.TODO(), model.UserPrompt("What is the temperature in London?"), mistral.WithPresencePenalty(-2))
131+
r, err := client.ChatCompletion(context.TODO(), model.UserPrompt("What is the temperature in London?"), llm.WithPresencePenalty(-2))
132132
if assert.NoError(err) {
133133
assert.Equal("assistant", r.Role())
134134
assert.Equal(1, r.Num())
@@ -137,7 +137,7 @@ func Test_chat_002(t *testing.T) {
137137
}
138138
})
139139
t.Run("FrequencyPenalty", func(t *testing.T) {
140-
r, err := client.ChatCompletion(context.TODO(), model.UserPrompt("What is the temperature in London?"), mistral.WithFrequencyPenalty(-2))
140+
r, err := client.ChatCompletion(context.TODO(), model.UserPrompt("What is the temperature in London?"), llm.WithFrequencyPenalty(-2))
141141
if assert.NoError(err) {
142142
assert.Equal("assistant", r.Role())
143143
assert.Equal(1, r.Num())

0 commit comments

Comments
 (0)