posit-dev / posit-dev/pointblank

Add support for Databricks-hosted model in Draft Validation

Open Beginner friendly
#379 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Type: ★ Enhancement
Dominant language
Python
Stars
490
Forks
32
Avg merge
14h 24m
Merged PRs (30d)
2

Description

Proposal

chatlas supports OpenAI compatible model providers (such as Databricks) but this is not an option for the DraftValidation class. The environment variable for OPENAI_BASE_URL is not used when calling chatlas.

chat = ChatOpenAI( # pragma: no cover
model=model_name,
system_prompt="You are a terse assistant and a Python expert.",
api_key=self.api_key,
kwargs={"http_client": http_client},
)

Since ChatOpenAI supports a base_url argument this should be a simple feature to add.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the DraftValidation class and its ChatOpenAI call shown in the issue, then check how chatlas reads OPENAI_BASE_URL. Pass the supported base URL through the model setup and verify that Draft Validation can use a Databricks-hosted OpenAI-compatible model.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.