mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-01 11:02:37 +00:00
partner: Update Upstage Model Names and Remove Deprecated Model (#29093)
This PR updates model names in the upstage library to reflect the latest naming conventions and removes deprecated models. Changes: Renamed Models: - `solar-1-mini-chat` -> `solar-mini` - `solar-1-mini-embedding-query` -> `embedding-query` Removed Deprecated Models: - `layout-analysis` (replaced to `document-parse`) Reference: - https://console.upstage.ai/docs/getting-started/overview - https://github.com/langchain-ai/langchain-upstage/releases/tag/libs%2Fupstage%2Fv0.5.0 Additional guidelines: - Make sure optional dependencies are imported within a function. - Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests. - Most PRs should not touch more than one package. - Changes should be backwards compatible. - If you are adding something to community, do not re-import it in langchain. If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17.
This commit is contained in:
@@ -24,7 +24,7 @@ class SolarChat(SolarCommon, ChatOpenAI): # type: ignore[override, override]
|
||||
|
||||
from langchain_community.chat_models.solar import SolarChat
|
||||
|
||||
solar = SolarChat(model="solar-1-mini-chat")
|
||||
solar = SolarChat(model="solar-mini")
|
||||
"""
|
||||
|
||||
max_tokens: int = Field(default=1024)
|
||||
|
@@ -70,7 +70,7 @@ class SolarEmbeddings(BaseModel, Embeddings):
|
||||
|
||||
endpoint_url: str = "https://api.upstage.ai/v1/solar/embeddings"
|
||||
"""Endpoint URL to use."""
|
||||
model: str = "solar-1-mini-embedding-query"
|
||||
model: str = "embedding-query"
|
||||
"""Embeddings model name to use."""
|
||||
solar_api_key: Optional[SecretStr] = None
|
||||
"""API Key for Solar API."""
|
||||
|
@@ -44,7 +44,7 @@ class SolarCommon(BaseModel):
|
||||
base_url: str = SOLAR_SERVICE_URL_BASE
|
||||
solar_api_key: Optional[SecretStr] = Field(default=None, alias="api_key")
|
||||
"""Solar API key. Get it here: https://console.upstage.ai/services/solar"""
|
||||
model_name: str = Field(default="solar-1-mini-chat", alias="model")
|
||||
model_name: str = Field(default="solar-mini", alias="model")
|
||||
"""Model name. Available models listed here: https://console.upstage.ai/services/solar"""
|
||||
max_tokens: int = Field(default=1024)
|
||||
temperature: float = 0.3
|
||||
|
Reference in New Issue
Block a user