Skip to content

Commit

Permalink
Update langs.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Oct 18, 2024
1 parent ccd3afe commit e326417
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions AiServer/wwwroot/mjs/langs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,15 @@ const java = `
import net.servicestack.client.*;
import java.util.Collections;
var client = new JsonServiceClient(baseUrl);
client.setBearerToken(apiKey);
var response = client.send(new OpenAiChatCompletion()
.setModel("mixtral:8x22b")
.setMessages(Utils.createList(new OpenAiMessage()
..setRole("user")
..setContent("What's the capital of France?")
))
.setMaxTokens(50);
);
OpenAiChatCompletion request = new OpenAiChatCompletion();
request.setModel("mixtral:8x22b")
.setMaxTokens(50)
.setMessages(Utils.createList(new OpenAiMessage()
.setRole("user")
.setContent("What's the capital of France?")
));
OpenAiChatResponse response = client.send(request);
Inspect.printDump(response);
`
const kotlin = `
package myapp
Expand Down

0 comments on commit e326417

Please sign in to comment.