- Sort Score
- Num 10 results
- Language All
Results 231 - 240 of 984 for Model1 (0.19 seconds)
-
docs_src/events/tutorial003_py310.py
return x * 42 ml_models = {} @asynccontextmanager async def lifespan(app: FastAPI): # Load the ML model ml_models["answer_to_everything"] = fake_answer_to_everything_ml_model yield # Clean up the ML models and release the resources ml_models.clear() app = FastAPI(lifespan=lifespan) @app.get("/predict") async def predict(x: float):Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 569 bytes - Click Count (0) -
docs/tr/docs/tutorial/security/simple-oauth2.md
disabled = user_dict["disabled"], hashed_password = user_dict["hashed_password"], ) ``` /// info | Bilgi `**user_dict` için daha kapsamlı bir açıklama için [**Extra Models** dokümantasyonundaki ilgili bölüme](../extra-models.md#about-user-in-dict) geri dönüp bakın. /// ## Token’ı Döndürme { #return-the-token } `token` endpoint’inin response’u bir JSON object olmalıdır.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 07:53:17 GMT 2026 - 10.4K bytes - Click Count (0) -
tests/test_openapi_schema_type.py
import pytest from fastapi.openapi.models import Schema, SchemaType @pytest.mark.parametrize( "type_value", [ "array", ["string", "null"], None, ], ) def test_allowed_schema_type( type_value: SchemaType | list[SchemaType] | None, ) -> None: """Test that Schema accepts SchemaType, List[SchemaType] and None for type field.""" schema = Schema(type=type_value)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 685 bytes - Click Count (0) -
docs/de/llm-prompt.md
* the form model: das Formularmodell * the form body: der Formularbody * the header: der Header * the headers (plural): die Header * in headers (plural): in Headern * the forwarded header: der Forwarded-Header * the lifespan event: das Lifespan-Event * the lock: der Lock * the locking: das Locking * the mobile application: die Mobile-Anwendung * the model object: das Modellobjekt
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Dec 29 18:54:20 GMT 2025 - 9.8K bytes - Click Count (0) -
compat/maven-model-builder/src/site/apt/super-pom.apt.vm
~~ under the License. ----- Super POM ----- Hervé Boutemy ----- 2011-09-12 ----- Super POM All models implicitly inherit from a super-POM:
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/LlmChatRequest.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 05 03:38:31 GMT 2026 - 6.4K bytes - Click Count (0) -
docs/zh/docs/tutorial/security/get-current-user.md
还记得请求体也是使用 Pydantic 模型声明的吧。 放心,因为使用了 `Depends`,**FastAPI** 不会搞混。 /// /// check | 检查 依赖系统的这种设计方式可以支持不同的依赖项返回同一个 `User` 模型。 而不是局限于只能有一个返回该类型数据的依赖项。 /// ## 其它模型 { #other-models } 接下来,直接在*路径操作函数*中获取当前用户,并用 `Depends` 在**依赖注入**系统中处理安全机制。 开发者可以使用任何模型或数据满足安全需求(本例中是 Pydantic 的 `User` 模型)。 而且,不局限于只能使用特定的数据模型、类或类型。 不想在模型中使用 `username`,而是使用 `id` 和 `email`?当然可以。这些工具也支持。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 3.6K bytes - Click Count (0) -
docs/ru/docs/how-to/separate-openapi-schemas.md
Посмотрим, как это работает, и как это изменить при необходимости. ## Pydantic‑модели для входа и выхода { #pydantic-models-for-input-and-output } Предположим, у вас есть Pydantic‑модель со значениями по умолчанию, как здесь: {* ../../docs_src/separate_openapi_schemas/tutorial001_py310.py ln[1:7] hl[7] *} ### Модель для входа { #model-for-input } Если использовать эту модель как входную, как здесь:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Jan 20 23:03:07 GMT 2026 - 6.9K bytes - Click Count (0) -
scripts/playwright/header_param_models/image01.py
page.get_by_role("button", name="GET /items/ Read Items").click() page.get_by_role("button", name="Try it out").click() # Manually add the screenshot page.screenshot(path="docs/en/docs/img/tutorial/header-param-models/image01.png") # --------------------- context.close() browser.close() process = subprocess.Popen( ["fastapi", "run", "docs_src/header_param_models/tutorial001.py"] ) try:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 1.1K bytes - Click Count (0) -
scripts/playwright/request_form_models/image01.py
page.get_by_role("button", name="POST /login/ Login").click() page.get_by_role("button", name="Try it out").click() # Manually add the screenshot page.screenshot(path="docs/en/docs/img/tutorial/request-form-models/image01.png") # --------------------- context.close() browser.close() process = subprocess.Popen( ["fastapi", "run", "docs_src/request_form_models/tutorial001.py"] ) try:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Sep 13 09:14:46 GMT 2024 - 1.1K bytes - Click Count (0)