Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 34 for getClient (0.06 seconds)

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

                if (logger.isTraceEnabled()) {
                    logger.trace("[LLM] LLM not available. ragChatEnabled=false");
                }
                return false;
            }
            final LlmClient client = getClient();
            final boolean isAvailable = client != null && client.isAvailable();
            if (logger.isTraceEnabled()) {
    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)
  2. android/guava/src/com/google/common/net/InetAddresses.java

          this.port = port;
          this.flags = flags;
        }
    
        public Inet4Address getServer() {
          return server;
        }
    
        public Inet4Address getClient() {
          return client;
        }
    
        public int getPort() {
          return port;
        }
    
        public int getFlags() {
          return flags;
        }
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/net/InetAddressesTest.java

        InetAddress server = InetAddresses.forString(serverStr);
        assertThat(teredo.getServer()).isEqualTo(server);
    
        InetAddress client = InetAddresses.forString(clientStr);
        assertThat(teredo.getClient()).isEqualTo(client);
    
        assertEquals(port, teredo.getPort());
        assertEquals(flags, teredo.getFlags());
      }
    
      public void testTeredoAddress_nullServer() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

            }
    
            final CrawlerClientFactory crawlerClientFactory = crawlingConfig.initializeClientFactory(ComponentUtil::getCrawlerClientFactory);
            final CrawlerClient client = crawlerClientFactory.getClient(url);
            if (client == null) {
                throw new CrawlingAccessException(
                        "CrawlerClient is null for URL: " + url + ". Unable to access the document without a crawler client.");
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Mar 30 14:27:04 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/chat/ChatClient.java

            final String assistantContentMode = fessConfig.getOrDefault("rag.chat.history.assistant.content", "smart_summary");
    
            final LlmClient client = llmClientManager.getClient();
            final int assistantMaxChars = client != null ? client.getHistoryAssistantMaxChars() : 800;
            final int summaryMaxChars = client != null ? client.getHistoryAssistantSummaryMaxChars() : 800;
    
    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)
  6. tests/test_tutorial/test_conditional_openapi/test_tutorial001.py

    from inline_snapshot import snapshot
    
    
    def get_client() -> TestClient:
        from docs_src.conditional_openapi import tutorial001_py310
    
        importlib.reload(tutorial001_py310)
    
        client = TestClient(tutorial001_py310.app)
        return client
    
    
    def test_disable_openapi(monkeypatch):
        monkeypatch.setenv("OPENAPI_URL", "")
        # Load the client after setting the env var
        client = get_client()
        response = client.get("/openapi.json")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  7. tests/test_tutorial/test_background_tasks/test_tutorial002.py

    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py310", marks=needs_py310),
            pytest.param("tutorial002_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.background_tasks.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    @workdir_lock
    def test(client: TestClient):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 10:53:47 GMT 2026
    - 968 bytes
    - Click Count (0)
  8. tests/test_tutorial/test_authentication_error_status_code/test_tutorial001.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial001_an_py310",
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(
            f"docs_src.authentication_error_status_code.{request.param}"
        )
    
        client = TestClient(mod.app)
        return client
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  9. tests/test_schema_compat_pydantic_v2.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    from pydantic import BaseModel
    
    from tests.utils import needs_py310
    
    
    @pytest.fixture(name="client")
    def get_client():
        from enum import Enum
    
        app = FastAPI()
    
        class PlatformRole(str, Enum):
            admin = "admin"
            user = "user"
    
        class OtherRole(str, Enum): ...
    
        class User(BaseModel):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  10. tests/test_tutorial/test_body_nested_models/test_tutorial009.py

    import importlib
    
    import pytest
    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    
    @pytest.fixture(
        name="client",
        params=[
            "tutorial009_py310",
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}")
    
        client = TestClient(mod.app)
        return client
    
    
    def test_post_body(client: TestClient):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 4.5K bytes
    - Click Count (0)
Back to Top