refactor: move the prompt and entities to parser
parent
cc19f23230
commit
676b49b5c6
@ -1,16 +0,0 @@
|
|||||||
from enum import StrEnum
|
|
||||||
|
|
||||||
|
|
||||||
class ResponseFormat(StrEnum):
|
|
||||||
"""Constants for model response formats"""
|
|
||||||
|
|
||||||
JSON_SCHEMA = "json_schema" # model's structured output mode. some model like gemini, gpt-4o, support this mode.
|
|
||||||
JSON = "JSON" # model's json mode. some model like claude support this mode.
|
|
||||||
JSON_OBJECT = "json_object" # json mode's another alias. some model like deepseek-chat, qwen use this alias.
|
|
||||||
|
|
||||||
|
|
||||||
class SpecialModelType(StrEnum):
|
|
||||||
"""Constants for identifying model types"""
|
|
||||||
|
|
||||||
GEMINI = "gemini"
|
|
||||||
OLLAMA = "ollama"
|
|
||||||
Loading…
Reference in New Issue