Files
openrouter-python-sdk-retry…/docs/models/completioncreateparams.md
T
Matt Apperson 5fc522c72f Initial commit: OpenRouter Python SDK
Auto-generated Python SDK for OpenRouter API, providing comprehensive client library with:
- Chat completions and streaming support
- Embeddings API
- Model and provider information
- API key management
- Analytics and usage tracking
- OAuth authentication flows
- Full type hints and error handling
2025-11-13 10:56:25 -05:00

12 KiB
Raw Blame History

CompletionCreateParams

Fields

Field Type Required Description
model Optional[str] N/A
models List[str] N/A
prompt models.Prompt ✔️ N/A
best_of OptionalNullable[int] N/A
echo OptionalNullable[bool] N/A
frequency_penalty OptionalNullable[float] N/A
logit_bias Dict[str, float] N/A
logprobs OptionalNullable[int] N/A
max_tokens OptionalNullable[int] N/A
n OptionalNullable[int] N/A
presence_penalty OptionalNullable[float] N/A
seed OptionalNullable[int] N/A
stop OptionalNullable[models.CompletionCreateParamsStop] N/A
stream Optional[bool] N/A
stream_options OptionalNullable[models.StreamOptions] N/A
suffix OptionalNullable[str] N/A
temperature OptionalNullable[float] N/A
top_p OptionalNullable[float] N/A
user Optional[str] N/A
metadata Dict[str, str] N/A
response_format OptionalNullable[models.CompletionCreateParamsResponseFormatUnion] N/A