interfaze 1.0.2__tar.gz → 1.0.3__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 (34) hide show
  1. {interfaze-1.0.2 → interfaze-1.0.3}/PKG-INFO +2 -2
  2. {interfaze-1.0.2 → interfaze-1.0.3}/README.md +1 -1
  3. {interfaze-1.0.2 → interfaze-1.0.3}/pyproject.toml +1 -1
  4. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/__init__.py +1 -1
  5. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/_client.py +8 -8
  6. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/_constants.py +2 -2
  7. {interfaze-1.0.2 → interfaze-1.0.3}/tests/test_chat.py +6 -6
  8. {interfaze-1.0.2 → interfaze-1.0.3}/uv.lock +1 -1
  9. {interfaze-1.0.2 → interfaze-1.0.3}/.github/workflows/ci.yml +0 -0
  10. {interfaze-1.0.2 → interfaze-1.0.3}/.github/workflows/publish.yml +0 -0
  11. {interfaze-1.0.2 → interfaze-1.0.3}/.github/workflows/qa-live.yml +0 -0
  12. {interfaze-1.0.2 → interfaze-1.0.3}/.gitignore +0 -0
  13. {interfaze-1.0.2 → interfaze-1.0.3}/LICENSE +0 -0
  14. {interfaze-1.0.2 → interfaze-1.0.3}/scripts/qa_live.py +0 -0
  15. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/_chat.py +0 -0
  16. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/_errors.py +0 -0
  17. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/_guard.py +0 -0
  18. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/_inputs.py +0 -0
  19. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/_schema.py +0 -0
  20. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/_stream.py +0 -0
  21. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/_tasks.py +0 -0
  22. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/_types.py +0 -0
  23. {interfaze-1.0.2 → interfaze-1.0.3}/src/interfaze/py.typed +0 -0
  24. {interfaze-1.0.2 → interfaze-1.0.3}/tests/assets.py +0 -0
  25. {interfaze-1.0.2 → interfaze-1.0.3}/tests/conftest.py +0 -0
  26. {interfaze-1.0.2 → interfaze-1.0.3}/tests/test_async.py +0 -0
  27. {interfaze-1.0.2 → interfaze-1.0.3}/tests/test_compliance.py +0 -0
  28. {interfaze-1.0.2 → interfaze-1.0.3}/tests/test_errors.py +0 -0
  29. {interfaze-1.0.2 → interfaze-1.0.3}/tests/test_guard.py +0 -0
  30. {interfaze-1.0.2 → interfaze-1.0.3}/tests/test_inputs_and_client.py +0 -0
  31. {interfaze-1.0.2 → interfaze-1.0.3}/tests/test_models.py +0 -0
  32. {interfaze-1.0.2 → interfaze-1.0.3}/tests/test_schema.py +0 -0
  33. {interfaze-1.0.2 → interfaze-1.0.3}/tests/test_stream.py +0 -0
  34. {interfaze-1.0.2 → interfaze-1.0.3}/tests/test_tasks.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: interfaze
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Interfaze Python SDK.
5
5
  Project-URL: Homepage, https://interfaze.ai
6
6
  Project-URL: Repository, https://github.com/InterfazeAI/interfaze-python
@@ -328,7 +328,7 @@ Set router, cache, and streaming behavior once on the client:
328
328
  ```python
329
329
  interfaze = Interfaze(
330
330
  show_additional_info=True, # stream <precontext> deltas as they're produced
331
- bypass_moe=True, # skip the mixture-of-experts router
331
+ bypass_moa=True, # skip the mixture-of-architecture router
332
332
  bypass_cache=True, # skip the semantic cache
333
333
  )
334
334
  ```
@@ -304,7 +304,7 @@ Set router, cache, and streaming behavior once on the client:
304
304
  ```python
305
305
  interfaze = Interfaze(
306
306
  show_additional_info=True, # stream <precontext> deltas as they're produced
307
- bypass_moe=True, # skip the mixture-of-experts router
307
+ bypass_moa=True, # skip the mixture-of-architecture router
308
308
  bypass_cache=True, # skip the semantic cache
309
309
  )
310
310
  ```
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "interfaze"
7
- version = "1.0.2"
7
+ version = "1.0.3"
8
8
  description = "Interfaze Python SDK."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -35,7 +35,7 @@ from ._types import (
35
35
  TaskName,
36
36
  )
37
37
 
38
- __version__ = "1.0.2"
38
+ __version__ = "1.0.3"
39
39
 
40
40
  __all__ = [
41
41
  "Interfaze",
@@ -10,7 +10,7 @@ from ._constants import (
10
10
  DEFAULT_TIMEOUT,
11
11
  HEADER_ADMIN_KEY,
12
12
  HEADER_BYPASS_CACHE,
13
- HEADER_BYPASS_MOE,
13
+ HEADER_BYPASS_MOA,
14
14
  HEADER_SHOW_ADDITIONAL_INFO,
15
15
  INTERFAZE_BASE_URL,
16
16
  )
@@ -30,15 +30,15 @@ def _resolve_key(api_key: Optional[str]) -> str:
30
30
  def _build_headers(
31
31
  default_headers: Optional[Dict[str, str]],
32
32
  show_additional_info: bool,
33
- bypass_moe: bool,
33
+ bypass_moa: bool,
34
34
  bypass_cache: bool,
35
35
  admin_key: Optional[str],
36
36
  ) -> Dict[str, str]:
37
37
  headers: Dict[str, str] = dict(default_headers or {})
38
38
  if show_additional_info:
39
39
  headers[HEADER_SHOW_ADDITIONAL_INFO] = "true"
40
- if bypass_moe:
41
- headers[HEADER_BYPASS_MOE] = "true"
40
+ if bypass_moa:
41
+ headers[HEADER_BYPASS_MOA] = "true"
42
42
  if bypass_cache:
43
43
  headers[HEADER_BYPASS_CACHE] = "true"
44
44
  if admin_key:
@@ -53,7 +53,7 @@ class Interfaze:
53
53
  api_key: Optional[str] = None,
54
54
  base_url: Optional[str] = None,
55
55
  show_additional_info: bool = False,
56
- bypass_moe: bool = False,
56
+ bypass_moa: bool = False,
57
57
  bypass_cache: bool = False,
58
58
  admin_key: Optional[str] = None,
59
59
  default_headers: Optional[Dict[str, str]] = None,
@@ -64,7 +64,7 @@ class Interfaze:
64
64
  api_key=_resolve_key(api_key),
65
65
  base_url=base_url or INTERFAZE_BASE_URL,
66
66
  default_headers=_build_headers(
67
- default_headers, show_additional_info, bypass_moe, bypass_cache, admin_key
67
+ default_headers, show_additional_info, bypass_moa, bypass_cache, admin_key
68
68
  ),
69
69
  **kwargs,
70
70
  )
@@ -80,7 +80,7 @@ class AsyncInterfaze:
80
80
  api_key: Optional[str] = None,
81
81
  base_url: Optional[str] = None,
82
82
  show_additional_info: bool = False,
83
- bypass_moe: bool = False,
83
+ bypass_moa: bool = False,
84
84
  bypass_cache: bool = False,
85
85
  admin_key: Optional[str] = None,
86
86
  default_headers: Optional[Dict[str, str]] = None,
@@ -91,7 +91,7 @@ class AsyncInterfaze:
91
91
  api_key=_resolve_key(api_key),
92
92
  base_url=base_url or INTERFAZE_BASE_URL,
93
93
  default_headers=_build_headers(
94
- default_headers, show_additional_info, bypass_moe, bypass_cache, admin_key
94
+ default_headers, show_additional_info, bypass_moa, bypass_cache, admin_key
95
95
  ),
96
96
  **kwargs,
97
97
  )
@@ -43,6 +43,6 @@ BLACKLISTED_FORMATS = ("image/gif", "image/avif")
43
43
 
44
44
  # Interfaze control-plane headers.
45
45
  HEADER_SHOW_ADDITIONAL_INFO = "x-show-additional-info"
46
- HEADER_BYPASS_MOE = "x-bypass-moe"
47
- HEADER_BYPASS_CACHE = "x-bypass-cache"
46
+ HEADER_BYPASS_MOA = "x-interfaze-bypass-moa"
47
+ HEADER_BYPASS_CACHE = "x-interfaze-bypass-cache"
48
48
  HEADER_ADMIN_KEY = "x-admin-key"
@@ -115,7 +115,7 @@ def test_control_headers():
115
115
  messages=[{"role": "user", "content": "x"}]
116
116
  )
117
117
  h = last_headers(route)
118
- assert h["x-show-additional-info"] == "true" and h["x-bypass-cache"] == "true"
118
+ assert h["x-show-additional-info"] == "true" and h["x-interfaze-bypass-cache"] == "true"
119
119
 
120
120
 
121
121
  @respx.mock
@@ -124,14 +124,14 @@ def test_all_control_headers_present():
124
124
  Interfaze(
125
125
  api_key="t",
126
126
  show_additional_info=True,
127
- bypass_moe=True,
127
+ bypass_moa=True,
128
128
  bypass_cache=True,
129
129
  admin_key="admin-secret",
130
130
  ).chat.completions.create(messages=[{"role": "user", "content": "x"}])
131
131
  h = last_headers(route)
132
132
  assert h["x-show-additional-info"] == "true"
133
- assert h["x-bypass-moe"] == "true"
134
- assert h["x-bypass-cache"] == "true"
133
+ assert h["x-interfaze-bypass-moa"] == "true"
134
+ assert h["x-interfaze-bypass-cache"] == "true"
135
135
  assert h["x-admin-key"] == "admin-secret"
136
136
 
137
137
 
@@ -141,8 +141,8 @@ def test_default_headers_omit_control_flags_when_unset():
141
141
  Interfaze(api_key="t").chat.completions.create(messages=[{"role": "user", "content": "x"}])
142
142
  h = last_headers(route)
143
143
  assert "x-show-additional-info" not in h
144
- assert "x-bypass-moe" not in h
145
- assert "x-bypass-cache" not in h
144
+ assert "x-interfaze-bypass-moa" not in h
145
+ assert "x-interfaze-bypass-cache" not in h
146
146
  assert "x-admin-key" not in h
147
147
 
148
148
 
@@ -431,7 +431,7 @@ wheels = [
431
431
 
432
432
  [[package]]
433
433
  name = "interfaze"
434
- version = "1.0.1"
434
+ version = "1.0.3"
435
435
  source = { editable = "." }
436
436
  dependencies = [
437
437
  { name = "openai" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes