Skip to content

Commit e051892

Browse files
committed
text fixes
1 parent 4ad70a2 commit e051892

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- **`llm_gateway_generate_text()` UDF wrapper for AI-powered DataFrame transformations.**
88

9-
New method on proxy providers to generate AI completions in DataFrame operations via the `llm_gateway_generate` UDF.
9+
New method on proxy providers to generate AI completions in DataFrame operations via a built-in UDF.
1010

1111
```python
1212
from datacustomcode import Client
@@ -31,13 +31,13 @@
3131
```
3232

3333
**Local Development:** Returns placeholder string (doesn't execute)
34-
**BYOC Production:** Calls real `llm_gateway_generate` UDF
34+
**Production:** Calls a built-in UDF
3535

3636
**Parameters:**
3737
- `template` (str): Prompt template with {placeholder} syntax
3838
- `values` (dict or Column): Dict mapping placeholders to Columns, or pre-built named_struct
3939
- `llmModelId` (str): Model identifier (required, e.g., "sfdc_ai__DefaultGPT4Omni")
40-
- `maxTokens` (int): Maximum response length (required, e.g., 200)
40+
- `maxTokens` (int): Maximum tokens that will be spent on this query
4141

4242

4343
## 1.0.0

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ sdf = client.read_dlo('my_DLO')
166166
client.write_to_dlo('output_DLO')
167167
```
168168

169+
> [!WARNING]
170+
> Currently we only support reading from DMOs and writing to DMOs or reading from DLOs and writing to DLOs, but they cannot mix.
171+
169172
### LLM Gateway
170173

171174
Generate AI completions in DataFrame transformations using the LLM gateway UDF.
@@ -193,7 +196,7 @@ df = df.withColumn(
193196
```
194197

195198
> [!WARNING]
196-
> This method returns a placeholder string in local development and won't execute. It only works when deployed, where it calls the real LLM Gateway service via the `llm_gateway_generate` UDF.
199+
> This method returns a placeholder string in local development. It only makes a LLM call and spends tokens when deployed, where it calls the real LLM Gateway service via a UDF.
197200
198201
## CLI
199202

0 commit comments

Comments
 (0)