unique_toolkit 0.5.28__tar.gz → 0.5.30__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/CHANGELOG.md +7 -1
  2. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/PKG-INFO +8 -2
  3. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/pyproject.toml +1 -1
  4. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/language_model/schemas.py +1 -1
  5. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/language_model/service.py +2 -2
  6. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/LICENSE +0 -0
  7. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/README.md +0 -0
  8. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/__init__.py +0 -0
  9. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/_common/_base_service.py +0 -0
  10. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/_common/_time_utils.py +0 -0
  11. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/_common/exception.py +0 -0
  12. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/_common/validators.py +0 -0
  13. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/app/__init__.py +0 -0
  14. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/app/init_logging.py +0 -0
  15. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/app/init_sdk.py +0 -0
  16. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/app/performance/async_tasks.py +0 -0
  17. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/app/performance/async_wrapper.py +0 -0
  18. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/app/schemas.py +0 -0
  19. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/app/verification.py +0 -0
  20. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/chat/__init__.py +0 -0
  21. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/chat/schemas.py +0 -0
  22. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/chat/service.py +0 -0
  23. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/chat/state.py +0 -0
  24. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/chat/utils.py +0 -0
  25. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/content/__init__.py +0 -0
  26. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/content/schemas.py +0 -0
  27. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/content/service.py +0 -0
  28. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/content/utils.py +0 -0
  29. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/embedding/__init__.py +0 -0
  30. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/embedding/schemas.py +0 -0
  31. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/embedding/service.py +0 -0
  32. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/embedding/utils.py +0 -0
  33. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/config.py +0 -0
  34. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/context_relevancy/constants.py +0 -0
  35. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/context_relevancy/prompts.py +0 -0
  36. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/context_relevancy/service.py +0 -0
  37. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/context_relevancy/utils.py +0 -0
  38. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/exception.py +0 -0
  39. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/hallucination/constants.py +0 -0
  40. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/hallucination/prompts.py +0 -0
  41. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/hallucination/service.py +0 -0
  42. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/hallucination/utils.py +0 -0
  43. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/output_parser.py +0 -0
  44. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/evaluators/schemas.py +0 -0
  45. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/language_model/__init__.py +0 -0
  46. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/language_model/infos.py +0 -0
  47. {unique_toolkit-0.5.28 → unique_toolkit-0.5.30}/unique_toolkit/language_model/utils.py +0 -0
@@ -5,8 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.5.30] - 2024-10-28
9
+ - Correctly use `temperature` parameter in `LanguageModelService.complete` and `LanguageModelService.complete_async` methods
10
+
11
+ ## [0.5.29] - 2024-10-28
12
+ - Allow numbers in `LanguageModelTool` name
13
+
8
14
  ## [0.5.28] - 2024-10-23
9
- - Correctly use `temperature` parameter in `LanguageModelService.complete`, `LanguageModelService.complete_async`, `LanguageModelService.stream_complete` and `LanguageModelService.stream_complete_async` methods
15
+ - Correctly use `temperature` parameter in `LanguageModelService.stream_complete` and `LanguageModelService.stream_complete_async` methods
10
16
 
11
17
  ## [0.5.27] - 2024-10-22
12
18
  - Add encoder_name to to language model info
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: unique_toolkit
3
- Version: 0.5.28
3
+ Version: 0.5.30
4
4
  Summary:
5
5
  License: Proprietary
6
6
  Author: Martin Fadler
@@ -100,8 +100,14 @@ All notable changes to this project will be documented in this file.
100
100
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
101
101
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
102
102
 
103
+ ## [0.5.30] - 2024-10-28
104
+ - Correctly use `temperature` parameter in `LanguageModelService.complete` and `LanguageModelService.complete_async` methods
105
+
106
+ ## [0.5.29] - 2024-10-28
107
+ - Allow numbers in `LanguageModelTool` name
108
+
103
109
  ## [0.5.28] - 2024-10-23
104
- - Correctly use `temperature` parameter in `LanguageModelService.complete`, `LanguageModelService.complete_async`, `LanguageModelService.stream_complete` and `LanguageModelService.stream_complete_async` methods
110
+ - Correctly use `temperature` parameter in `LanguageModelService.stream_complete` and `LanguageModelService.stream_complete_async` methods
105
111
 
106
112
  ## [0.5.27] - 2024-10-22
107
113
  - Add encoder_name to to language model info
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "unique_toolkit"
3
- version = "0.5.28"
3
+ version = "0.5.30"
4
4
  description = ""
5
5
  authors = [
6
6
  "Martin Fadler <martin.fadler@unique.ch>",
@@ -182,7 +182,7 @@ class LanguageModelToolParameters(BaseModel):
182
182
  class LanguageModelTool(BaseModel):
183
183
  name: str = Field(
184
184
  ...,
185
- pattern=r"^[a-zA-Z_-]+$",
185
+ pattern=r"^[a-zA-Z1-9_-]+$",
186
186
  description="Name must adhere to the pattern ^[a-zA-Z_-]+$",
187
187
  )
188
188
  description: str
@@ -52,6 +52,7 @@ class LanguageModelService(BaseService):
52
52
  LanguageModelResponse: The LanguageModelResponse object.
53
53
  """
54
54
  options = self._add_tools_to_options({}, tools)
55
+ options["temperature"] = temperature
55
56
  messages = messages.model_dump(exclude_none=True)
56
57
  model = (
57
58
  model_name.name if isinstance(model_name, LanguageModelName) else model_name
@@ -67,7 +68,6 @@ class LanguageModelService(BaseService):
67
68
  messages,
68
69
  ),
69
70
  timeout=timeout,
70
- temperature=temperature,
71
71
  options=options, # type: ignore
72
72
  )
73
73
  return LanguageModelResponse(**response)
@@ -109,6 +109,7 @@ class LanguageModelService(BaseService):
109
109
  Exception: If an error occurs during the request, an exception is raised and logged.
110
110
  """
111
111
  options = cls._add_tools_to_options({}, tools)
112
+ options["temperature"] = temperature
112
113
  messages = messages.model_dump(exclude_none=True, exclude={"tool_calls"})
113
114
  model = (
114
115
  model_name.name if isinstance(model_name, LanguageModelName) else model_name
@@ -122,7 +123,6 @@ class LanguageModelService(BaseService):
122
123
  messages,
123
124
  ),
124
125
  timeout=timeout,
125
- temperature=temperature,
126
126
  options=options, # type: ignore
127
127
  )
128
128
  return LanguageModelResponse(**response)
File without changes