Skip to content

Fixed APIs for create article from server and search#31

Merged
AlexMikhalev merged 7 commits intomainfrom
fix_create
Feb 2, 2024
Merged

Fixed APIs for create article from server and search#31
AlexMikhalev merged 7 commits intomainfrom
fix_create

Conversation

@AlexMikhalev
Copy link
Contributor

I also added the normalization of role keys to lowercase, and it works, but the code looks pretty ugly.
All local tests are green - I will add git clone for test pkm repo so tests will be run inside earthly in the same way.

Signed-off-by: AlexMikhalev <alex@metacortex.engineer>
Signed-off-by: AlexMikhalev <alex@metacortex.engineer>
Signed-off-by: AlexMikhalev <alex@metacortex.engineer>
Signed-off-by: AlexMikhalev <alex@metacortex.engineer>
@AlexMikhalev AlexMikhalev requested a review from mre February 2, 2024 16:29
@mre
Copy link
Contributor

mre commented Feb 2, 2024

Great! Looks good.

Signed-off-by: AlexMikhalev <alex@metacortex.engineer>
Signed-off-by: AlexMikhalev <alex@metacortex.engineer>
let mut article = match articles_cached.get(&each_doc.id) {
Some(article) => article.clone(),
None => {
return Err(Error::Article(format!(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mre that should not be possible - cache and index use the same API to index article and add to cache.

Signed-off-by: AlexMikhalev <alex@metacortex.engineer>
@AlexMikhalev AlexMikhalev merged commit 0ccc42d into main Feb 2, 2024
@AlexMikhalev AlexMikhalev deleted the fix_create branch February 2, 2024 18:39
AlexMikhalev added a commit that referenced this pull request Mar 20, 2026
Add provider allowlist and banned_providers fields to OrchestratorConfig.
Default banned list includes "opencode" (Zen pay-per-use proxy, ADR-002).
Add validate_provider() method to spawner AgentConfig that rejects any
model string starting with a banned prefix, while correctly allowing
opencode-go/ (subscription) and kimi-for-coding/ (subscription).

Fixes #31

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants