mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
35 lines
906 B
Python
35 lines
906 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
|
|
|
|
|
|
ChatCompletionNamedToolChoiceType = Literal["function"]
|
|
|
|
|
|
class ChatCompletionNamedToolChoiceFunctionTypedDict(TypedDict):
|
|
name: str
|
|
r"""Function name to call"""
|
|
|
|
|
|
class ChatCompletionNamedToolChoiceFunction(BaseModel):
|
|
name: str
|
|
r"""Function name to call"""
|
|
|
|
|
|
class ChatCompletionNamedToolChoiceTypedDict(TypedDict):
|
|
r"""Named tool choice for specific function"""
|
|
|
|
type: ChatCompletionNamedToolChoiceType
|
|
function: ChatCompletionNamedToolChoiceFunctionTypedDict
|
|
|
|
|
|
class ChatCompletionNamedToolChoice(BaseModel):
|
|
r"""Named tool choice for specific function"""
|
|
|
|
type: ChatCompletionNamedToolChoiceType
|
|
|
|
function: ChatCompletionNamedToolChoiceFunction
|