Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for LlmException (0.05 seconds)

  1. src/main/java/org/codelibs/fess/llm/LlmException.java

         * @param message the error message
         */
        public LlmException(final String message) {
            super(message);
            errorCode = ERROR_UNKNOWN;
        }
    
        /**
         * Creates a new exception with the specified message and cause.
         *
         * @param message the error message
         * @param cause the cause of the exception
         */
        public LlmException(final String message, final Throwable cause) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 01:53:06 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/llm/LlmExceptionTest.java

            final LlmException exception = new LlmException("Error occurred", cause);
            assertEquals(LlmException.ERROR_UNKNOWN, exception.getErrorCode());
        }
    
        @Test
        public void test_constructorWithMessageAndErrorCode() {
            final LlmException exception = new LlmException("Rate limit exceeded", LlmException.ERROR_RATE_LIMIT);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 05 04:19:06 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/llm/LlmClientManager.java

            if (Constants.NONE.equals(llmType)) {
                throw new LlmException("LLM client is not available");
            }
            if (!isRagChatEnabled()) {
                throw new LlmException("LLM client is not available");
            }
            final LlmClient client = getClient();
            if (client == null || !client.isAvailable()) {
                throw new LlmException("LLM client is not available");
            }
            return client;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 11:10:51 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

                return LlmException.ERROR_AUTH;
            }
            if (statusCode == 404) {
                return LlmException.ERROR_MODEL_NOT_FOUND;
            }
            if (statusCode == 408) {
                return LlmException.ERROR_TIMEOUT;
            }
            if (statusCode == 502 || statusCode == 503) {
                return LlmException.ERROR_SERVICE_UNAVAILABLE;
            }
            return LlmException.ERROR_UNKNOWN;
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/llm/LlmClient.java

        /**
         * Performs a chat completion request.
         *
         * @param request the chat request containing messages and parameters
         * @return the chat response from the LLM
         * @throws LlmException if an error occurs during the request
         */
        LlmChatResponse chat(LlmChatRequest request);
    
        /**
         * Performs a streaming chat completion request.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 07:04:54 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java

                    logger.debug("SSE stream completed. sessionId={}, hasHtmlContent={}", result.getSessionId(), htmlContent != null);
                }
    
            } catch (final LlmException e) {
                // LlmException from streamChatEnhanced already sent onError via callback - avoid double-send
                logger.warn("LLM error during stream request. sessionId={}, errorCode={}, message={}", sessionId, e.getErrorCode(),
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 06:06:55 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/chat/ChatClient.java

    import org.codelibs.fess.llm.IntentDetectionResult;
    import org.codelibs.fess.llm.LlmChatResponse;
    import org.codelibs.fess.llm.LlmClient;
    import org.codelibs.fess.llm.LlmClientManager;
    import org.codelibs.fess.llm.LlmException;
    import org.codelibs.fess.llm.LlmMessage;
    import org.codelibs.fess.llm.LlmStreamCallback;
    import org.codelibs.fess.llm.RelevanceEvaluationResult;
    import org.codelibs.fess.mylasta.direction.FessConfig;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 56.6K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/llm/AbstractLlmClientTest.java

            assertEquals("original query", result);
        }
    
        @Test
        public void test_regenerateQuery_exception_returnsFailedQuery() {
            client.setChatResponse(null); // causes LlmException
    
            final String result = client.regenerateQuery("test question", "original query", "no_results", Collections.emptyList());
    
            assertEquals("original query", result);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 07:04:54 GMT 2026
    - 53K bytes
    - Click Count (0)
Back to Top