mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
27 lines
652 B
Python
27 lines
652 B
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
from __future__ import annotations
|
|
from openrouter.types import BaseModel
|
|
from typing import Literal
|
|
from typing_extensions import TypedDict
|
|
|
|
|
|
ChatFormatGrammarConfigType = Literal["grammar",]
|
|
|
|
|
|
class ChatFormatGrammarConfigTypedDict(TypedDict):
|
|
r"""Custom grammar response format"""
|
|
|
|
grammar: str
|
|
r"""Custom grammar for text generation"""
|
|
type: ChatFormatGrammarConfigType
|
|
|
|
|
|
class ChatFormatGrammarConfig(BaseModel):
|
|
r"""Custom grammar response format"""
|
|
|
|
grammar: str
|
|
r"""Custom grammar for text generation"""
|
|
|
|
type: ChatFormatGrammarConfigType
|