Skip to content

Commit

Permalink
fix(annottation)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovuruska committed May 7, 2024
1 parent fe44774 commit dd1bb95
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions deepinfra/models/base/text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,18 @@
"""

import json
from typing import Union

from deepinfra.models.base import BaseModel
from deepinfra.types.text_generation.request import TextGenerationRequest
from deepinfra.types.text_generation.response import TextGenerationResponse


class TextGeneration(BaseModel) -> TextGenerationResponse:
class TextGeneration(BaseModel):
"""
Initializes one of the DeepInfra text generation models.
@docs Check the available models at https://deepinfra.com/models/text-generation
"""

def generate(self, body: dict):
def generate(self, body: dict) -> TextGenerationResponse:
"""
Generates text.
:param body:
Expand Down

0 comments on commit dd1bb95

Please sign in to comment.