Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for getFinishReason (0.06 seconds)

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

        public void setContent(final String content) {
            this.content = content;
        }
    
        /**
         * Gets the finish reason.
         *
         * @return the finish reason
         */
        public String getFinishReason() {
            return finishReason;
        }
    
        /**
         * Sets the finish reason.
         *
         * @param finishReason the finish reason
         */
        public void setFinishReason(final String finishReason) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 12 10:32:40 GMT 2026
    - 3.4K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/llm/LlmChatResponseTest.java

            final LlmChatResponse response = new LlmChatResponse();
    
            response.setFinishReason("stop");
            assertEquals("stop", response.getFinishReason());
    
            response.setFinishReason("length");
            assertEquals("length", response.getFinishReason());
        }
    
        @Test
        public void test_tokenCounts() {
            final LlmChatResponse response = new LlmChatResponse();
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 5.1K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

                            response.getPromptTokens(), response.getCompletionTokens(), response.getTotalTokens(), response.getFinishReason());
                }
                if (isEmptyContentWithLengthFinish(response)) {
                    logger.warn(
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
Back to Top