Skip to content

Refactor: Remove account_ids from constants, use inline values in examples #196

@ryoppippi

Description

@ryoppippi

Summary

The account_ids should not be stored in constants. Instead, they should be set inline in examples or fetched from a function.

Context

From PR #148 review comment by @glebedel:

I don't think it makes sense to ever have account_ids in constants vs fetching them from some kind of function or just setting them inline for the purpose of having examples, eg const accountId =

#148 (comment)

Affected Files

  • examples/openai-integration.ts
  • Any other examples using account_ids from constants

Proposed Changes

Replace imports from constants with inline values in examples:

// Before
import { STACKONE_ACCOUNT_ID } from './constants';

// After
const accountId = '<your-account-id>';

This makes examples clearer and doesn't expose internal implementation details.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions