mirror of
https://github.com/primedigitaltech/market-assistant.git
synced 2026-07-22 08:01:34 +08:00
新增 providers/adapters/openai_official_chatgpt、shared 抽离归一化与 token 启发式;MA_LLM_TEXT_PROVIDER 支持 openai_official/openai_chatgpt/chatgpt。补充单测与 try_openai_official_llm 试跑脚本、.env.example 说明。 Made-with: Cursor
16 lines
502 B
Python
16 lines
502 B
Python
"""文本大模型调用的协议、适配器与工厂(与具体提示词/业务生成逻辑解耦)。"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .adapters import CrawlerOpenAiCompatibleTextLlm, OpenAiOfficialChatGptTextLlm
|
|
from .factory import get_text_llm, reset_text_llm_client_for_tests
|
|
from .protocol import TextLlmClient
|
|
|
|
__all__ = [
|
|
"CrawlerOpenAiCompatibleTextLlm",
|
|
"OpenAiOfficialChatGptTextLlm",
|
|
"TextLlmClient",
|
|
"get_text_llm",
|
|
"reset_text_llm_client_for_tests",
|
|
]
|