Skip to content

Commit 7cf2399

Browse files
committed
Fixes after review
1 parent 026957d commit 7cf2399

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/docs/typescript-api/LLMModule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ To run the model, you can use the `sendMessage` method. It accepts the user mess
130130

131131
Alternatively, you can use `generate` method. It allows you to simply pass chat messages and receive completion from the model. It doesn't provide any message history management.
132132

133-
If you need raw model, without any wrappers, you can use `forward`. It provides direct access to the model, so the input string is passed straight into the model. It may be useful to work with models that aren't finetuned for chat completions. If you're not sure what are implications of that, you're better off with `sendMessage`
133+
If you need raw model, without any wrappers, you can use `forward`. It provides direct access to the model, so the input string is passed straight into the model. It may be useful to work with models that aren't finetuned for chat completions. If you're not sure what are implications of that, you're better off with `sendMessage`.
134134

135135
## Listening for token
136136

examples/llm/App.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useState } from 'react';
88
import ColorPalette from './colors';
99
import { View, StyleSheet, Text } from 'react-native';
1010

11-
enum ModeType {
11+
enum Mode {
1212
LLM,
1313
LLM_TOOL_CALLING,
1414
}
@@ -18,18 +18,18 @@ export default function App() {
1818
medium: require('./assets/fonts/Aeonik-Medium.otf'),
1919
regular: require('./assets/fonts/Aeonik-Regular.otf'),
2020
});
21-
const [selectedMode, setSelectedMode] = useState<ModeType>(ModeType.LLM);
21+
const [selectedMode, setSelectedMode] = useState<Mode>(Mode.LLM);
2222

23-
const handleModeChange = (mode: ModeType) => {
23+
const handleModeChange = (mode: Mode) => {
2424
setSelectedMode(mode);
2525
};
2626

2727
const renderScreen = () => {
2828
switch (selectedMode) {
29-
case ModeType.LLM:
29+
case Mode.LLM:
3030
return <ChatScreenLLM />;
3131

32-
case ModeType.LLM_TOOL_CALLING:
32+
case Mode.LLM_TOOL_CALLING:
3333
return <ChatScreenLLMToolCalling />;
3434

3535
default:

0 commit comments

Comments
 (0)