Skip to content

Commit

Permalink
fix vb
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 23, 2024
1 parent 0b89a9e commit da56e28
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions MyApp/_posts/2024-12-03_typed-openai-chat-ollama-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ let client = new JsonApiClient(baseUrl)
let result = client.Post<OpenAiChatCompletionResponse>("/v1/chat/completions",
OpenAiChatCompletion(
Model = "llama3.1:8b",
Model = "mixtral:8x22b",
Messages = ResizeArray [
OpenAiMessage(
Role = "user",
Expand Down Expand Up @@ -397,15 +397,14 @@ Dim client = New JsonApiClient(baseUrl)

Dim result = Await client.PostAsync(Of OpenAiChatResponse)(
"/v1/chat/completions",
New OpenAiChatCompletion()
With {
.Model = "mixtral:8x22b",
.Messages = New List(Of OpenAiMessage) From {
New OpenAiMessage With {
.Role = "user",
.Content = "What's the capital of France?"
}
},
.MaxTokens = 50
})
New OpenAiChatCompletion() With {
.Model = "mixtral:8x22b",
.Messages = New List(Of OpenAiMessage) From {
New OpenAiMessage With {
.Role = "user",
.Content = "What's the capital of France?"
}
},
.MaxTokens = 50
})
```

0 comments on commit da56e28

Please sign in to comment.