Skip to content

Commit 23574cc

Browse files
author
Dariusz Debowczyk
committed
Release version 0.15.2
1 parent 3ea5152 commit 23574cc

File tree

159 files changed

+1927
-1913
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+1927
-1913
lines changed

bin/composer-install-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -e # stops script on first error
33

44
for dir in packages/*; do

bin/composer-update-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -e # stops script on first error
33

44
for dir in packages/*; do

bin/publish-ver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# publish.sh - Main script for releasing a new version
33
set -e # Exit immediately if a command exits with non-zero status
44

bin/run-all-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -e # stops script on first error
33

44
for dir in packages/*; do

bin/sync-ver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# sync-ver.sh - Synchronizes versions across explicitly defined packages
33
set -e # Exit immediately if a command exits with non-zero status
44

bin/test-publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# test-publish.sh - Test version of the publish script
33
# This version performs all operations except git commits, pushes, and releases
44

docs-build/cookbook/instructor/basics/basic_use_mixin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static public function infer(
2323
int $maxRetries = 2, // (optional) The number of retries in case of validation failure
2424
array $options = [], // (optional) Additional data to pass to the Instructor or LLM API
2525
Mode $mode = Mode::Tools, // (optional) The mode to use for inference
26-
LLM $llm = null // (optional) LLM instance to use for inference
26+
?LLM $llm = null // (optional) LLM instance to use for inference
2727
) : static;
2828
```
2929

docs-build/http/9-1-custom-clients.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ class CurlHttpResponse implements HttpClientResponse
472472
private string $body,
473473
$stream = null,
474474
bool $isStreaming = false,
475-
string $tempFile = null
475+
?string $tempFile = null
476476
) {
477477
$this->stream = $stream;
478478
$this->isStreaming = $isStreaming;

docs-build/polyglot/embeddings/optimization.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class CachedEmbeddings {
5050
private $embeddings;
5151
private $cache = [];
5252

53-
public function __construct(Embeddings $embeddings = null) {
53+
public function __construct(?Embeddings $embeddings = null) {
5454
$this->embeddings = $embeddings ?? new Embeddings();
5555
}
5656

docs-build/polyglot/internals/public-api.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ class Inference {
1515
// Create and manage the LLM instance
1616
public function __construct(
1717
string $connection = '',
18-
LLMConfig $config = null,
19-
CanHandleHttpRequest $httpClient = null,
20-
CanHandleInference $driver = null,
21-
EventDispatcher $events = null
18+
?LLMConfig $config = null,
19+
?CanHandleHttpRequest $httpClient = null,
20+
?CanHandleInference $driver = null,
21+
?EventDispatcher $events = null
2222
) { ... }
2323

2424
// Configure the instance
@@ -65,10 +65,10 @@ namespace Cognesy\Polyglot\Embeddings;
6565
class Embeddings {
6666
public function __construct(
6767
string $connection = '',
68-
EmbeddingsConfig $config = null,
69-
CanHandleHttpRequest $httpClient = null,
70-
CanVectorize $driver = null,
71-
EventDispatcher $events = null
68+
?EmbeddingsConfig $config = null,
69+
?CanHandleHttpRequest $httpClient = null,
70+
?CanVectorize $driver = null,
71+
?EventDispatcher $events = null
7272
) { ... }
7373

7474
// Configuration methods

0 commit comments

Comments
 (0)