Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/summaries/AI_SYNTAX_FIXES.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,17 @@ dep_ok = (status.get("dependency_status", {}).get(
```python
# Before (BROKEN):
self.azureai = ChatCompletionsClient(
endpoint = "https://models.github.ai/inference",
credential = AzureKeyCredential(os.environ["GITHUB_TOKEN"]),
api_version = "2024-12-01-preview",
api_version = "2024-08-01-preview", # DUPLICATE
endpoint="https://models.github.ai/inference",
credential=AzureKeyCredential(os.environ["GITHUB_TOKEN"]),
api_version="2024-12-01-preview",
api_version="2024-08-01-preview", # DUPLICATE
)

# After (FIXED):
self.azureai = ChatCompletionsClient(
endpoint = "https://models.github.ai/inference",
credential = AzureKeyCredential(os.environ["GITHUB_TOKEN"]),
api_version = "2024-12-01-preview",
endpoint="https://models.github.ai/inference",
credential=AzureKeyCredential(os.environ["GITHUB_TOKEN"]),
api_version="2024-12-01-preview",
)
```

Expand Down
2 changes: 1 addition & 1 deletion pxt_modules/base/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ TNumber bnot(TNumber a) {
}

//%
TNumber ands(TNumber a, TNumber b) { BITOP(&) }
TNumber ands(TNumber a, TNumber b){BITOP(&)}

#ifdef PXT64
#define CMPOP_RAW(op, t, f) \
Expand Down
2 changes: 1 addition & 1 deletion pxt_modules/base/pxtbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ class BoxedString : public RefObject {

#if PXT_UTF8
uintptr_t runMethod(int idx) {
return ((uintptr_t(*)(BoxedString *))vtable->methods[idx])(this);
return ((uintptr_t (*)(BoxedString *))vtable->methods[idx])(this);
}
const char *getUTF8Data() { return (const char *)runMethod(4); }
uint32_t getUTF8Size() { return (uint32_t)runMethod(5); }
Expand Down
Loading