diff --git a/docs/docs/guides/08-troubleshooting/02-somethings-amiss.mdx b/docs/docs/guides/08-troubleshooting/02-somethings-amiss.mdx index 56700cd0d..749b56ea9 100644 --- a/docs/docs/guides/08-troubleshooting/02-somethings-amiss.mdx +++ b/docs/docs/guides/08-troubleshooting/02-somethings-amiss.mdx @@ -1,7 +1,7 @@ --- title: Something's amiss slug: /troubleshooting/somethings-amiss -description: Troubleshooting "Something's amiss" +description: Troubleshooting "Something's amiss". keywords: [ Jan AI, Jan, @@ -16,7 +16,7 @@ keywords: [ ] --- -You may receive an "Something's amiss" response when you first start chatting with a selected model. +You may receive a "Something's amiss" response when you first start chatting with a selected model. This may occur due to several reasons. Please follow these steps to resolve it: @@ -26,7 +26,7 @@ This may occur due to several reasons. Please follow these steps to resolve it: 2. Select a model that is smaller than 80% of your hardware V/RAM. - - For example, if you have a 8GB machine, you should select models smaller than 6GB. + - For example, if you have an 8GB machine, you should select models smaller than 6GB. 3. Install the latest [Nightly release](https://jan.ai/install/nightly/) diff --git a/docs/docs/guides/08-troubleshooting/03-gpu-not-used.mdx b/docs/docs/guides/08-troubleshooting/03-gpu-not-used.mdx index 8fce3a483..d35993ab6 100644 --- a/docs/docs/guides/08-troubleshooting/03-gpu-not-used.mdx +++ b/docs/docs/guides/08-troubleshooting/03-gpu-not-used.mdx @@ -1,7 +1,7 @@ --- title: Jan is Not Using GPU slug: /troubleshooting/gpu-not-used -description: Jan is not using GPU +description: Jan is not using GPU. keywords: [ Jan AI, Jan, diff --git a/docs/docs/guides/08-troubleshooting/04-how-to-get-error-logs.mdx b/docs/docs/guides/08-troubleshooting/04-how-to-get-error-logs.mdx new file mode 100644 index 000000000..7eaebf24c --- /dev/null +++ b/docs/docs/guides/08-troubleshooting/04-how-to-get-error-logs.mdx @@ -0,0 +1,39 @@ +--- +title: How to Get Error Logs +slug: /troubleshooting/how-to-get-error-logs +description: How to get error logs. +keywords: + [ + Jan AI, + Jan, + ChatGPT alternative, + local AI, + private AI, + conversational AI, + no-subscription fee, + large language model, + troubleshooting, + error logs, + app logs, + server logs, + ] +--- + +To get the error logs of Jan, you can navigate to the `~/jan/logs` directory through `Settings` > `Advanced` > `Open App Directory`. + +- Open the `app.log` file if you are using UI. +- Open the `error.log` file for error logs if you are using the local API server. + +```bash +# Using UI +tail -n 50 ~/jan/logs/app.log + +# Using local api server +tail -n 50 ~/jan/logs/server.log +``` + +:::note +- When sharing logs or error information, make sure to redact any private or sensitive information. +::: + +If you have any questions or are looking for support, please don't hesitate to contact us via our [Discord community](https://discord.gg/Dt7MxDyNNZ) or create a [new issue in our GitHub repository](https://github.com/janhq/jan/issues/new/choose). diff --git a/web/containers/DropdownListSidebar/index.tsx b/web/containers/DropdownListSidebar/index.tsx index f8ac92d6f..725e34ca0 100644 --- a/web/containers/DropdownListSidebar/index.tsx +++ b/web/containers/DropdownListSidebar/index.tsx @@ -96,9 +96,16 @@ export default function DropdownListSidebar() { const modelParams: ModelParams = { ...recommendedModel?.parameters, ...recommendedModel?.settings, - // This is to set default value for these settings instead of maximum value - max_tokens: defaultValue(recommendedModel?.parameters.max_tokens), - ctx_len: defaultValue(recommendedModel?.settings.ctx_len), + /** + * This is to set default value for these settings instead of maximum value + * Should only apply when model.json has these settings + */ + ...(recommendedModel?.parameters.max_tokens && { + max_tokens: defaultValue(recommendedModel?.parameters.max_tokens), + }), + ...(recommendedModel?.settings.ctx_len && { + ctx_len: defaultValue(recommendedModel?.settings.ctx_len), + }), } setThreadModelParams(activeThread.id, modelParams) } diff --git a/web/containers/SliderRightPanel/index.tsx b/web/containers/SliderRightPanel/index.tsx index 1c46be8cf..e7fcfa1ff 100644 --- a/web/containers/SliderRightPanel/index.tsx +++ b/web/containers/SliderRightPanel/index.tsx @@ -114,18 +114,18 @@ const SliderRightPanel: React.FC = ({ min={min} max={max} value={String(value)} - onChange={(e) => { + onBlur={(e) => { if (Number(e.target.value) > Number(max)) { onValueChanged([Number(max)]) setShowTooltip({ max: true, min: false }) } else if (Number(e.target.value) < Number(min)) { onValueChanged([Number(min)]) setShowTooltip({ max: false, min: true }) - } else { - onValueChanged([Number(e.target.value)]) - setShowTooltip({ max: false, min: false }) } }} + onChange={(e) => { + onValueChanged([Number(e.target.value)]) + }} />