pe653

Results 6 issues of pe653

Is proxy setting allowed for LLM like openai.proxy = os.getenv(HTTP_PROXY) ? please add if possible. openai-python api has a attribute openai.proxy, which is very convenient for HTTP/WS proxy setting as...

This PR is to solve the issue#1423. Add http_proxy loading from environment in openai.py for both BaseOpenAI and OpenAIChat. It is an optional env variables not mandatory. This is my...

跑个unit test的时候例句得到负值的cosine similarity,这个是怎么回事?是util.cos_sim函数的问题么? ```` try: logger.info("START - 加载 Sen-SIMILARITY 模型") # model = SentenceTransformer('distiluse-base-multilingual-cased-v2') model = SentenceTransformer('uer/sbert-base-chinese-nli') # uer model中文性能好很多。 logger.info("FINISH - 加载 Sen-SIMILARITY 模型") except Exception as e: logger.warning("Exception...

``` File "/root/.pyenv/versions/3.9.18/lib/python3.9/site-packages/cog/predictor.py", line 239, in get_input_type raise TypeError( TypeError: Unsupported input type list for parameter `model_faces`. Supported input types are: str, int, float, bool, cog.File, cog.Path. ⅹ Failed to...

> /Users/peter42/opt/miniconda3/envs/pydant2/lib/python3.10/site-packages/pydantic/_migration.py:282: UserWarning: `pydantic.utils:deep_update` has been removed. We are importing from `pydantic.v1.utils:deep_update` instead.See the migration guide for more details: https://docs.pydantic.dev/latest/migration/ > warnings.warn( > Traceback (most recent call last): > File...

### Description 服务端获取到code之后换取access_token和id_token,但是AuthenticationClient Class有验证access_token的合法性的函数,没有验证id_token的合法性的函数。然而[官方文档](https://docs.authing.cn/v2/reference/sdk-for-python/authentication/StandardProtocol.html#%E6%A3%80%E9%AA%8C-id-token-%E6%88%96-access-token-%E7%9A%84%E5%90%88%E6%B3%95%E6%80%A7) 描述是有个 validate_token方法验证id_token的合法性的。是否可以加上这个函数? ### Proposed solution 希望添加validate_token方法验证id_token的合法性