Skip to content

Commit

Permalink
Fix int value (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
moria97 authored Oct 25, 2024
1 parent 12a2862 commit 90ec8eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pai_rag/integrations/llms/pai/llm_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Literal
from pydantic import BaseModel
from pydantic import BaseModel, ConfigDict
from enum import Enum
from llama_index.core.constants import DEFAULT_TEMPERATURE

Expand Down Expand Up @@ -159,6 +159,8 @@ class PaiEasLlmConfig(PaiBaseLlmConfig):
token: str
model: str = "default"

model_config = ConfigDict(coerce_numbers_to_str=True)


class DashScopeMultiModalLlmConfig(DashScopeLlmConfig):
model: str = "qwen-vl-max"
Expand Down

0 comments on commit 90ec8eb

Please sign in to comment.